Closed felipemotarocha closed 1 month ago
How can I set different domains depending on the stage of my app? I want to set a different domain to prod and dev environment.
I didn't see anything on the docs related to that. I know that in SST we could do something like this:
new NextjsSite(stack, "site", { customDomain: stack.stage === "prod" ? "my-app.com" : `${stack.stage}.my-app.com`, });
Can someone help me with this please?
domain: $app.stage === "prod" ? `app.${domain}` : `stage.${domain}`,
https://ion.sst.dev/docs/reference/global/
^ yep can see all globals here: https://ion.sst.dev/docs/reference/global/#_top
Thanks so much guys!
How can I set different domains depending on the stage of my app? I want to set a different domain to prod and dev environment.
I didn't see anything on the docs related to that. I know that in SST we could do something like this:
Can someone help me with this please?