stack/packages/stack-server/src/stack.tsx
Zai Shi 507b97f427
Migration to Shadcn UI (#31)
* 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
2024-05-10 23:34:42 +02:00

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: "/",
}
});