File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,14 @@ openssl rand -base64 32
5555
5656- Add this to ` .env ` as ` NEXTAUTH_SECRET ` .
5757
58+ - Create symlink for Next.js:
59+
60+ ``` bash
61+ ln -s ../../.env apps/web/.env
62+ ```
63+
64+ > Next.js requires the ` .env ` file in its directory. This symlink ensures both root and ` apps/web ` can access the same environment variables.
65+
5866### 4. GitHub OAuth (Optional for Dev)
5967
6068Set up a GitHub OAuth App:
Original file line number Diff line number Diff line change @@ -98,6 +98,14 @@ pnpm install
9898
9999``` bash
100100openssl rand -base64 32
101+ ```
102+
103+ </Step >
104+ <Step title = " Create symlink for Next.js" >
105+ Create a symlink so that Next.js can access the root ` .env ` file:
106+
107+ ``` bash
108+ ln -s ../../.env apps/web/.env
101109```
102110
103111 </Step >
You can’t perform that action at this time.
0 commit comments