mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
* fixed theme doesn't work when not signed in * added tailwind * use stack theme instead of stack joy theme for server * added shadcn * added shadcn components * added new project page * improved styling * added footer * added footer * added new project page * added project creation page * made new project page interactive * added project settings on create project endpoint * added async button * fixed small things * data-theme -> data-stack-theme * changed color scheme * changed joy buttons to shadcn buttons * fixed lint * added redirect to create project page
17 lines
475 B
TypeScript
17 lines
475 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-server must always use the internal project.");
|
|
}
|
|
|
|
export const stackServerApp = new StackServerApp<"nextjs-cookie", true, 'internal'>({
|
|
tokenStore: "nextjs-cookie",
|
|
urls: {
|
|
afterSignIn: "/projects",
|
|
afterSignUp: "/projects",
|
|
afterSignOut: "/",
|
|
}
|
|
});
|