2 separate code bases for development and production

I have a site with custom code that allows my customers to use the native webflow forms to sign in and signup. I have two endpoints for production and staging and use javascript to make it happen (.staging and .live).

Does anyone know of an easy way to have two separate sites to point one signup option to staging and one to point to live so developers can still using the staging site to debug on the backend. As far as I can see webflow does not allow two seperate codebases.

The only thing I could think of was just duplicating the project and then changing the code.

Here is my site Read-Only: LINK

If you’re referring to the Webflow project subdomain you get as the test site, then you could identify this host with JavaScript and manipulate the rest however you need to… this will then automatically always point to test and prod from the correct environment.

Will that work?