Skip to content

Commit eacf231

Browse files
nt-minoclaude
andauthored
docs: add .env symlink setup instructions for apps/web (#287)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent f525381 commit eacf231

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CONTRIBUTION.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6068
Set up a GitHub OAuth App:

apps/docs/get-started/local.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ pnpm install
9898

9999
```bash
100100
openssl 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>

0 commit comments

Comments
 (0)