Skip to content
TypeScript
862 B
Raw Blame
import { defineNuxtConfig } from "nuxt/config";

/**
 * The fixture's own nuxt.config.ts — loaded natively by the integration
 * (c12 through the project's @nuxt/kit). Every setting is observable from
 * the live test, proving the file actually applied:
 *
 * - `runtimeConfig.public.fixtureMarker` renders on the SSR home page.
 * - `routeRules["/prerendered"].prerender` makes nitro prerender that
 *   route into `.output/public` at build time.
 *
 * Note there is NO `nitro.preset` here: the Cloudflare deploy target owns
 * the preset (a user-set foreign preset is a hard error by design).
 */
export default defineNuxtConfig({
  compatibilityDate: "2026-07-01",
  telemetry: { enabled: false },
  runtimeConfig: {
    public: {
      fixtureMarker: "nuxt-user-config-loaded",
    },
  },
  routeRules: {
    "/prerendered": { prerender: true },
  },
});