From a1c0dc76a6a148d161405f1044d846e4946db849 Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Thu, 7 Mar 2024 16:40:45 +0800 Subject: [PATCH] improved doc clarity --- docs/docs/01-getting-started/01-setup.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/docs/01-getting-started/01-setup.md b/docs/docs/01-getting-started/01-setup.md index cfb146bc3..eb5b6c1d3 100644 --- a/docs/docs/01-getting-started/01-setup.md +++ b/docs/docs/01-getting-started/01-setup.md @@ -35,19 +35,13 @@ npm install @stackframe/stack import { StackServerApp } from "@stackframe/stack"; export const stackApp = new StackServerApp({ - // Automatically reads your API keys from the environment variables you set above. - // - // Alternatively, you could set them manually: - // - // projectId: process.env.NEXT_PUBLIC_STACK_PROJECT_ID, - // publishableClientKey: process.env.NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY, - // secretServerKey: process.env.STACK_SECRET_SERVER_KEY, - tokenStore: "nextjs-cookie", // storing auth tokens in cookies }); ``` - This will create a server app that you can later use to access Stack from your Next.js server. + This will reads the environment variables automatically and create a server app that you can later use to access Stack from your Next.js server. + + `StackServerApp` has many other options. Check out [StackServerApp documentation](/docs/api-documentation/app) if you want to learn more. 3. Create a new file in `app/handler/[...stack]/page.tsx` and paste the following code: