| 1 | import { defineNuxtConfig } from "nuxt/config"; |
| 2 | |
| 3 | /** |
| 4 | * SPA-mode fixture: `ssr: false` disables server rendering for every page — |
| 5 | * the worker (and prerenderer) emit only the app shell, and Vue renders |
| 6 | * exclusively in the browser. Nitro server routes (`server/api/*`) still |
| 7 | * execute in the worker; that split is what the live test pins. |
| 8 | * |
| 9 | * The `app.head` meta tag is the SHELL MARKER: it appears in the shell HTML |
| 10 | * served for `/` and for deep links, proving a response is the app shell |
| 11 | * rather than server-rendered page content (which must NOT appear in raw |
| 12 | * HTML with `ssr: false`). |
| 13 | */ |
| 14 | export default defineNuxtConfig({ |
| 15 | compatibilityDate: "2026-07-01", |
| 16 | telemetry: { enabled: false }, |
| 17 | ssr: false, |
| 18 | app: { |
| 19 | head: { |
| 20 | meta: [{ name: "fixture", content: "nuxt-spa-shell" }], |
| 21 | }, |
| 22 | }, |
| 23 | }); |