From eacf23117308073b2d2878a7f3e1c3f2daa3ad66 Mon Sep 17 00:00:00 2001 From: mino <98791185+nt-mino@users.noreply.github.com> Date: Sat, 8 Nov 2025 04:52:47 +0900 Subject: [PATCH] docs: add .env symlink setup instructions for apps/web (#287) Co-authored-by: Claude --- CONTRIBUTION.md | 8 ++++++++ apps/docs/get-started/local.mdx | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/CONTRIBUTION.md b/CONTRIBUTION.md index 0bab9ca..71ad69c 100644 --- a/CONTRIBUTION.md +++ b/CONTRIBUTION.md @@ -55,6 +55,14 @@ openssl rand -base64 32 - Add this to `.env` as `NEXTAUTH_SECRET`. +- Create symlink for Next.js: + +```bash +ln -s ../../.env apps/web/.env +``` + +> Next.js requires the `.env` file in its directory. This symlink ensures both root and `apps/web` can access the same environment variables. + ### 4. GitHub OAuth (Optional for Dev) Set up a GitHub OAuth App: diff --git a/apps/docs/get-started/local.mdx b/apps/docs/get-started/local.mdx index c1f273e..4e101db 100644 --- a/apps/docs/get-started/local.mdx +++ b/apps/docs/get-started/local.mdx @@ -98,6 +98,14 @@ pnpm install ```bash openssl rand -base64 32 +``` + + + + Create a symlink so that Next.js can access the root `.env` file: + +```bash +ln -s ../../.env apps/web/.env ```