fix env vars

This commit is contained in:
Bilal Godil 2025-09-05 16:14:13 -07:00
parent 466db95913
commit f237e8dd99
3 changed files with 2 additions and 6 deletions

View File

@ -2,8 +2,6 @@
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`.
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`.
STACK_SECRET_SERVER_KEY=# a random, unguessable secret key generated by `pnpm generate-keys`
STACK_INTERNAL_PROJECT_CLIENT_KEY=# enter your Stack publishable client key here. For local development, just enter a random string, then run `pnpm db:reset`
STACK_INTERNAL_PROJECT_SERVER_KEY=# enter your Stack secret server key here. For local development, do the same as above
# seed script settings

View File

@ -1,7 +1,5 @@
NEXT_PUBLIC_STACK_API_URL=http://localhost:8102
NEXT_PUBLIC_STACK_DASHBOARD_URL=http://localhost:8101
STACK_INTERNAL_PROJECT_CLIENT_KEY=this-publishable-client-key-is-for-local-development-only
STACK_INTERNAL_PROJECT_SERVER_KEY=this-secret-server-key-is-for-local-development-only
STACK_SERVER_SECRET=23-wuNpik0gIW4mruTz25rbIvhuuvZFrLOLtL7J4tyo
STACK_SEED_INTERNAL_PROJECT_SIGN_UP_ENABLED=true

View File

@ -5,6 +5,6 @@ export const stackServerApp = new StackServerApp({
projectId: 'internal',
tokenStore: 'memory',
baseUrl: getEnvVariable('NEXT_PUBLIC_STACK_API_URL'),
publishableClientKey: getEnvVariable('STACK_INTERNAL_PROJECT_CLIENT_KEY'),
secretServerKey: getEnvVariable('STACK_INTERNAL_PROJECT_SERVER_KEY'),
publishableClientKey: getEnvVariable('STACK_SEED_INTERNAL_PROJECT_PUBLISHABLE_CLIENT_KEY'),
secretServerKey: getEnvVariable('STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEY'),
});