stack/apps/dashboard/src/stack.tsx
2024-07-01 22:42:08 -07:00

17 lines
481 B
TypeScript

import './polyfills';
import { StackServerApp } from '@stackframe/stack';
if (process.env.NEXT_PUBLIC_STACK_PROJECT_ID !== "internal") {
throw new Error("This project is not configured correctly. stack-dashboard must always use the internal project.");
}
export const stackServerApp = new StackServerApp<"nextjs-cookie", true, 'internal'>({
tokenStore: "nextjs-cookie",
urls: {
afterSignIn: "/projects",
afterSignUp: "/new-project",
afterSignOut: "/",
}
});