mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-30 21:01:54 +08:00
13 lines
492 B
TypeScript
13 lines
492 B
TypeScript
import { StackServerApp } from '@stackframe/stack';
|
|
import { getEnvVariable } from '@stackframe/stack-shared/dist/utils/env';
|
|
|
|
export function getStackServerApp() {
|
|
return new StackServerApp({
|
|
projectId: 'internal',
|
|
tokenStore: null,
|
|
baseUrl: getEnvVariable('NEXT_PUBLIC_STACK_API_URL'),
|
|
publishableClientKey: getEnvVariable('STACK_SEED_INTERNAL_PROJECT_PUBLISHABLE_CLIENT_KEY'),
|
|
secretServerKey: getEnvVariable('STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEY'),
|
|
});
|
|
}
|