Skip to content

Commit

Permalink
different domain
Browse files Browse the repository at this point in the history
  • Loading branch information
balegas committed Nov 18, 2024
1 parent d11d91d commit a999adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/nextjs-ssr-example/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ function deployNextJsExample(
electricInfo: $util.Output<{ id: string; token: string }>,
uri: $util.Output<string>
) {
return new sst.aws.Nextjs(`nextjs`, {
return new sst.aws.Nextjs(`nextjs-ssr`, {
environment: {
ELECTRIC_URL: process.env.ELECTRIC_API!,
ELECTRIC_TOKEN: electricInfo.token,
DATABASE_ID: electricInfo.id,
DATABASE_URL: uri,
},
domain: {
name: `nextjs${$app.stage === `production` ? `` : `-stage-${$app.stage}`}.electric-sql.com`,
name: `nextjs-ssr${$app.stage === `production` ? `` : `-stage-${$app.stage}`}.electric-sql.com`,
dns: sst.cloudflare.dns(),
},
})
Expand Down

0 comments on commit a999adb

Please sign in to comment.