Skip to content

Correct local setup info in CLAUDE.md - #794

Merged
ComfortablyCoding merged 2 commits into
mainfrom
chrisjennings/fix-claude-md-toolchain-versions
Jul 30, 2026
Merged

Correct local setup info in CLAUDE.md#794
ComfortablyCoding merged 2 commits into
mainfrom
chrisjennings/fix-claude-md-toolchain-versions

Conversation

@ChristopherJennings

Copy link
Copy Markdown
Contributor

Two things tripped me up setting up locally from a clean checkout.

The stated versions didn't match the manifest. package.json asks for Node >=22.18 and pins pnpm 10.29.2, but the file said Node 22 and pnpm 9.15.4, so a working setup on Node 24 and pnpm 10 looked wrong.

pnpm dev then failed until I set DIRECTUS_URL. It surfaces as an Invalid URL stack trace from inside the SDK, which doesn't point at the cause, so I added a line about copying .env.example first.

Does that match how you set this up, or is there a step I'm missing that makes the .env unnecessary? If the change is right, two follow-ups: is CLAUDE.md the right home for that note or does it belong in a README, and should .env.example mark DIRECTUS_URL as required? Everything in it reads as equally optional today, but only that one seems to block startup.

The stated toolchain versions did not match the manifest. package.json
declares engines.node ">=22.18" and pins packageManager
"pnpm@10.29.2", not Node.js 22 and pnpm 9.15.4. Node 24 and pnpm 10
both satisfy it, so the old text made a working setup look wrong.

Also documented that pnpm dev throws "Invalid URL" without
DIRECTUS_URL, since the Nuxt server passes it to createDirectus()
during render. This is not obvious from the error, which surfaces as
a stack trace inside @directus/sdk.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 30, 2026 2:47pm

Request Review

@ChristopherJennings
ChristopherJennings marked this pull request as ready for review July 30, 2026 01:58
@ChristopherJennings
ChristopherJennings requested a review from a team as a code owner July 30, 2026 01:58
Comment thread CLAUDE.md Outdated
pnpm preview # Preview production build locally
```

`pnpm dev` fails with `Invalid URL` unless `DIRECTUS_URL` is set, because the Nuxt server passes it to `createDirectus()` during render. Copy `.env.example` to `.env` before the first run. For content-only work, `DIRECTUS_URL` is the sole required value; the remaining variables emit warnings and disable search, analytics, and the assistant.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wont "Copy .env.example to .env before the first run." potentially overwrite any custom values in .env?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah maybe worth mentioning "only do it if it doesn't exist"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, updated to address.

@ComfortablyCoding
ComfortablyCoding merged commit d6b5fc5 into main Jul 30, 2026
3 checks passed
@ComfortablyCoding
ComfortablyCoding deleted the chrisjennings/fix-claude-md-toolchain-versions branch July 30, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants