Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ Directus documentation site built with Nuxt 3 and `@nuxt/content`. Markdown file
## Commands

```bash
pnpm install # Install dependencies (requires Node.js 22, pnpm 9.15.4)
pnpm install # Install dependencies (requires Node.js >=22.18, pnpm 10.29.2)
pnpm dev # Dev server at http://localhost:3000/docs
pnpm build # Production build
pnpm generate # Static site generation (used for Vercel deploy)
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 any missing environment variables from `.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.

There is no test runner configured. Linting is via `@nuxt/eslint` (run through Nuxt's built-in integration).

## Architecture
Expand Down
Loading