diff --git a/docs/docs/01-getting-started/01-setup.md b/docs/docs/01-getting-started/01-setup.md index b0dafe656..37f28dfd9 100644 --- a/docs/docs/01-getting-started/01-setup.md +++ b/docs/docs/01-getting-started/01-setup.md @@ -28,7 +28,7 @@ npm install @stackframe/stack STACK_SECRET_SERVER_KEY= ``` -2. Create `StackServerApp` in `@lib/stack.ts`: +2. Create a new file in `lib/stack.ts` and fill it with the following: ```tsx import "server-only"; diff --git a/docs/docs/01-getting-started/02-users.md b/docs/docs/01-getting-started/02-users.md index 6f5f359e4..a51e06a34 100644 --- a/docs/docs/01-getting-started/02-users.md +++ b/docs/docs/01-getting-started/02-users.md @@ -34,7 +34,7 @@ On Server Components, you don't need `useStackApp()`. Instead, you can just impo ```tsx import "server-only"; -import { stackApp } from "lib/stack"; +import { stackApp } from "@/lib/stack"; export default async function MyComponent() { const user = await stackApp.getUser();