Update stack.ts

This commit is contained in:
Madison 2025-09-03 14:29:40 -05:00
parent a49c7cec56
commit 3c8c8f3846

View File

@ -1,6 +1,11 @@
import { StackServerApp } from '@stackframe/stack';
import "server-only";
// Explicitly configure Stack Auth for docs app
export const stackServerApp = new StackServerApp({
tokenStore: "nextjs-cookie",
projectId: process.env.NEXT_PUBLIC_STACK_PROJECT_ID,
publishableClientKey: process.env.NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY,
secretServerKey: process.env.STACK_SECRET_SERVER_KEY,
baseUrl: process.env.NEXT_PUBLIC_STACK_API_URL,
});