From aba1227808cdbeea3876d53bc17d002b1ec38207 Mon Sep 17 00:00:00 2001 From: Stan Wohlwend Date: Thu, 7 Mar 2024 20:44:47 +0100 Subject: [PATCH] docs: Make explicit that you have to create lib/stack.ts --- docs/docs/01-getting-started/01-setup.md | 2 +- docs/docs/01-getting-started/02-users.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();