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 ```