From 4c800809531062ed5bf1da01a21eab66c81bbcda Mon Sep 17 00:00:00 2001 From: "brian.mulier" Date: Fri, 13 Dec 2024 16:21:10 +0100 Subject: [PATCH] fix: change preset for SSR to work --- nuxt.config.ts | 4 +--- package.json | 4 ++-- {app => server}/multiCache.serverOptions.ts | 0 wrangler.toml | 3 ++- 4 files changed, 5 insertions(+), 6 deletions(-) rename {app => server}/multiCache.serverOptions.ts (100%) diff --git a/nuxt.config.ts b/nuxt.config.ts index 1c0b2eaf0f..9af3c8c399 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -204,8 +204,7 @@ export default defineNuxtConfig({ nitro: { prerender: { - routes: ['/rss.xml'], - autoSubfolderIndex: false + routes: ['/rss.xml'] }, }, @@ -308,7 +307,6 @@ export default defineNuxtConfig({ }, multiCache: { - debug: true, data: { enabled: true, }, diff --git a/package.json b/package.json index 2ba08a88ce..a9a57966f3 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare", - "pages:dev": "NITRO_PRESET=cloudflare-pages wrangler pages dev --compatibility-date=2023-10-25 --proxy 3000 -- npm run dev", - "pages:build": "NITRO_PRESET=cloudflare-pages npm run build", + "pages:dev": "NITRO_PRESET=cloudflare-worker wrangler pages dev --proxy 3000 -- npm run dev", + "pages:build": "NITRO_PRESET=cloudflare-worker npm run build", "pages:deploy": "wrangler pages deploy --project-name docs ./dist", "pages:build-deploy": "npm run pages:build && npm run pages:deploy", "analyze": "nuxt analyze" diff --git a/app/multiCache.serverOptions.ts b/server/multiCache.serverOptions.ts similarity index 100% rename from app/multiCache.serverOptions.ts rename to server/multiCache.serverOptions.ts diff --git a/wrangler.toml b/wrangler.toml index d6d6ec0ab3..0be8f3b644 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1 +1,2 @@ -logpush = true \ No newline at end of file +logpush = true +compatibility_date = '2024-07-16' \ No newline at end of file