docs/README.md
The marketing + documentation site for react-spring, built on React Router 7 in framework mode and deployed to Vercel.
Vercel auto-detects React Router 7 and runs the build. Pushes to a feature
branch produce a preview deployment; merges to next deploy to production
(react-spring.dev).
From the repo root (this workspace uses pnpm with strict isolation):
pnpm install --frozen-lockfile
pnpm docs:dev
The site is served at http://localhost:3000 with HMR for component code, MDX content, and Vanilla Extract styles.
| Task | Command |
|---|---|
| Type-check | pnpm --filter @react-spring/docs test:ts |
| Production build | pnpm --filter @react-spring/docs build |
| Serve built artefact locally* | pnpm --filter @react-spring/docs start |
* start uses react-router-serve against the default Node build output.
When the @vercel/react-router preset is active, react-router build emits
the Vercel deployment format under build/server/nodejs_*/; for that layout
the canonical local serve is via vercel dev or the preview deployment.
@react-router/devvite.config.mts)@react-router/fs-routes (Remix v2 flat-route
convention preserved in app/routes.ts)@vercel/react-router preset)