Next.js Discord

Discord Forum

Deploying Next.Js to Google Apphosting

Unanswered
Cimarrón Uruguayo posted this in #help-forum
Open in Discord
Avatar
Cimarrón UruguayoOP
Hi, has anyone deployed a Next.Js app to google apphosting? Just wondering how you managed to set NEXT_PUBLIC_SERVER_URL as the deploy url you receive from apphosting is dynamic, so you can't hardcode a value in the secrets or apphosting.yaml (the config file for deploying here).

Is there a way to figure this out without deploying prior (to get the value of the dynamic url - redeployments to the same backend do not change the dynamic url) and then redeploying by updating the secret value?

1 Reply

Avatar
Cimarrón UruguayoOP
bump