It looks like the public url link / copy button was recently taken out of the project menu.
Unfortunately this makes a previously painful problem now a bit more painful:
After sending a user to Glitch with the Button API, how how can I programatically get the URL of their newly created project?
This “copy public URL” link was my best workaround for onboarding users.
Why need this?
In an OAuth2 handshake, the platform that issues the keys needs to know the URL authorizing app. Same with an application that processes webhooks. The public URL is a necessary config value for many platform scenarios.
I made another suggestion to let the developer pass a random subdomain as part of the environment.
The docs actually imply that this can be done:
PROJECT_DOMAIN – Contains your project’s name, useful for programmatically specifying your project’s URL
However, passing PROJECT_DOMAIN in the button API does not set the subdomain. The “copy public URL” field was an ok workaround.
If Glitch is being used to extend other products there must be a programmatic way to hand off the the public URL of the project. Making one-click setups for platforms would be so much more awesome.
Does anyone happen to have a workaround?
To give some additional context, here is the Facebook Messenger Glitch quickstart.
Note the language about copying the public URL.
But imagine if there was just a single “Remix In Glitch” button that passed the client id, client secret, and subdomain. It would be a one-click FB Messenger app. No setup required.
I removed the link to our example project as it’s no longer relevant.