Question: How can I get a static domain name (custom, or something like the old project.username.repl.co) for development with the new replit.dev system?
Repl link/Link to where the bug appears: N/A
Screenshots, links, or other helpful context: I am working on a project which needs to use Sign In With Google, but with the Google API for web I need to restrict the domain name of the redirect_uri which is the page it redirects the user back to after they have signed in. Previously this was fine because my repl would always use the same
project.username.repl.co domain name so I could whitelist this domain name and redirect to it. However, as of the start of this month, replit has switched to replit.dev for development domain names and, along with this, the domain names now appear to be randomly generated (for example,
b55f0bfe-592f-485d-9295-826b96b1e657-00-2b8bjlcimx324.worf.replit.dev) meaning I can’t whitelist it nor do I know what I could set the redirect_uri to. I am aware of production deployments, but I don’t want to need to create a production deployment in order to test every change I make (besides, it’s a “production deployment” for a reason!) and, of course, I also don’t want to need to pay (it is not a static site) when I am not needing 24/7 hosting. The only solution I can think of would be to create a proxy elsewhere which uses the repl.it API to get the generated domain name (if such an API endpoint exists) to redirect the user and handles Google requests on behalf of my repl. However, not only would that be a massive hassle, but I’m not wanting to hard-code my project for replit because I’m using another service for production deployment and I usually locally host this project but only need to use replit in school because I’m not able to host stuff via my school’s network. I’m aware replit allows for custom domains, but this seems to only be supported for production deployments and not for development. Is there some way I can still get a static domain name for development on replit?