You could use a Continuous Integration pipeline that automatically commits the changes to two different repos in a folder structure and deploy them to production as two separate repos while maintaining and authoring in one repo.
Or deploy the monorepo to production in a non-public folder and automatically move the two directories to different locations in the servers web root.
With a bit of scripting you could make this work.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yeah, so assume the web and api were two separate standalone services, deployed to different servers, I guess that wouldn’t work?
You could use a Continuous Integration pipeline that automatically commits the changes to two different repos in a folder structure and deploy them to production as two separate repos while maintaining and authoring in one repo.
Or deploy the monorepo to production in a non-public folder and automatically move the two directories to different locations in the servers web root.
With a bit of scripting you could make this work.