<One sentence: what this Nuxt app does.>
Stack
- Nuxt (Vue 3,
<script setup lang="ts">), Nitro server routes, Pinia -
Styling: <Tailwind CSS UnoCSS>; tests: Vitest (+ @nuxt/test-utils), Playwright
Commands
- Dev:
npx nuxi dev<ornpm run dev> - Typecheck:
npx nuxi typecheck - Lint:
npm run lint - Tests:
npx vitest run - Build:
npm run buildthennode .output/server/index.mjsto try it
Rules
- Use
useFetch/useAsyncDatafor data needed during SSR (with a stable key);$fetchfor client-side actions. - Server routes in
server/api/; validate input (with `readValidatedBody`/`getValidatedQuery`). - Secrets in
runtimeConfig(server-only keys); onlyruntimeConfig.publicreaches the client. - Rely on auto-imports for composables and components; do not add manual imports that duplicate them.
- Avoid hydration mismatches: no
Date.now(), random values or browser-only APIs during SSR render; use<ClientOnly>oronMountedwhen needed.
Definition of done
- Typecheck, lint, tests and build pass.