Correct local setup info in CLAUDE.md - #794
Merged
ComfortablyCoding merged 2 commits intoJul 30, 2026
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ChristopherJennings
marked this pull request as ready for review
July 30, 2026 01:58
| 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. |
Member
There was a problem hiding this comment.
Wont "Copy .env.example to .env before the first run." potentially overwrite any custom values in .env?
Member
There was a problem hiding this comment.
yeah maybe worth mentioning "only do it if it doesn't exist"?
Contributor
Author
There was a problem hiding this comment.
Good catch, updated to address.
ComfortablyCoding
approved these changes
Jul 30, 2026
ComfortablyCoding
deleted the
chrisjennings/fix-claude-md-toolchain-versions
branch
July 30, 2026 14:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two things tripped me up setting up locally from a clean checkout.
The stated versions didn't match the manifest.
package.jsonasks for Node>=22.18and pins pnpm10.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 devthen failed until I setDIRECTUS_URL. It surfaces as anInvalid URLstack trace from inside the SDK, which doesn't point at the cause, so I added a line about copying.env.examplefirst.Does that match how you set this up, or is there a step I'm missing that makes the
.envunnecessary? 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.examplemarkDIRECTUS_URLas required? Everything in it reads as equally optional today, but only that one seems to block startup.