You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/backend/.env
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Basic
2
2
NEXT_PUBLIC_STACK_API_URL=# the base URL of Stack's backend/API. For local development, this is `http://localhost:8102`; for the managed service, this is `https://api.stack-auth.com`.
3
3
NEXT_PUBLIC_STACK_DASHBOARD_URL=# the URL of Stack's dashboard. For local development, this is `http://localhost:8101`; for the managed service, this is `https://app.stack-auth.com`.
4
-
STACK_SERVER_SECRET=# a random, unguessable secret key generated by `pnpm generate-keys`
4
+
STACK_SECRET_SERVER_KEY=# a random, unguessable secret key generated by `pnpm generate-keys`
5
5
6
6
# seed script settings
7
7
STACK_SEED_INTERNAL_PROJECT_SIGN_UP_ENABLED=# true to add OTP auth to the dashboard when seeding
// These keys must match the values used in the Stack dashboard env to be able to login via the UI.
45
-
publishableClientKey: process.env.STACK_SEED_INTERNAL_PROJECT_PUBLISHABLE_CLIENT_KEY||throwErr('STACK_SEED_INTERNAL_PROJECT_PUBLISHABLE_CLIENT_KEY is not set'),
46
-
secretServerKey: process.env.STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEY||throwErr('STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEY is not set'),
47
-
superSecretAdminKey: process.env.STACK_SEED_INTERNAL_PROJECT_SUPER_SECRET_ADMIN_KEY||throwErr('STACK_SEED_INTERNAL_PROJECT_SUPER_SECRET_ADMIN_KEY is not set'),
// These keys must match the values used in the Stack dashboard env to be able to login via the UI.
139
+
publishableClientKey: process.env.STACK_SEED_INTERNAL_PROJECT_PUBLISHABLE_CLIENT_KEY||throwErr('STACK_SEED_INTERNAL_PROJECT_PUBLISHABLE_CLIENT_KEY is not set'),
140
+
secretServerKey: process.env.STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEY||throwErr('STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEY is not set'),
141
+
superSecretAdminKey: process.env.STACK_SEED_INTERNAL_PROJECT_SUPER_SECRET_ADMIN_KEY||throwErr('STACK_SEED_INTERNAL_PROJECT_SUPER_SECRET_ADMIN_KEY is not set'),
142
+
expiresAt: newDate('2099-12-31T23:59:59Z'),
143
+
}
144
+
});
145
+
126
146
// Create optional default admin user if credentials are provided.
127
147
// This user will be able to login to the dashboard with both email/password and magic link.
NEXT_PUBLIC_STACK_DASHBOARD_URL=# https://your-dashboard-domain.com, this will be added as a trusted domain by the seed script
3
-
STACK_SEED_INTERNAL_PROJECT_ALLOW_LOCALHOST=# if true, the internal dashboard project will allow localhost as a trusted domain. Do not set this to true in production.
4
3
5
4
STACK_DATABASE_CONNECTION_STRING=# postgres connection string with pooler
6
5
STACK_DIRECT_DATABASE_CONNECTION_STRING=# postgres direct connection string
7
6
8
-
NEXT_PUBLIC_STACK_PROJECT_ID=internal
9
-
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=# a secure random string
10
-
STACK_SECRET_SERVER_KEY=# a secure random string
11
7
STACK_SERVER_SECRET=# a 32 bytes base64url encoded random string, used for JWT encryption. can be generated with `pnpm generate-keys`
12
8
13
9
# seed script settings
@@ -33,5 +29,5 @@ STACK_SVIX_SERVER_URL=# this is only needed if you self-host the Svix service
33
29
STACK_SVIX_API_KEY=
34
30
35
31
36
-
STACK_RUN_MIGRATIONS=true
37
-
STACK_RUN_SEED_SCRIPT=true
32
+
STACK_SKIP_MIGRATIONS=# true to skip prisma migrations
33
+
STACK_SKIP_SEED_SCRIPT=# true to skip the seed script
0 commit comments