diff --git a/wp-content/themes/moonshine/nuxt.config.ts b/wp-content/themes/moonshine/nuxt.config.ts index 1514cb0..f2628f1 100644 --- a/wp-content/themes/moonshine/nuxt.config.ts +++ b/wp-content/themes/moonshine/nuxt.config.ts @@ -56,9 +56,7 @@ export default defineNuxtConfig({ nitro: { preset: "cloudflare_module", cloudflare: { - deployConfig: true, wrangler: { - name: "wp-headless", vars: { NODE_ENV: "staging", NUXT_SITE_URL: siteUrl, diff --git a/wp-content/themes/moonshine/wrangler.json b/wp-content/themes/moonshine/wrangler.json index 9ab6b88..72f69dd 100644 --- a/wp-content/themes/moonshine/wrangler.json +++ b/wp-content/themes/moonshine/wrangler.json @@ -1,14 +1,18 @@ { - "$schema": "./node_modules/wrangler/config-schema.json", - "main": "./output/server/index.mjs", - "compatibility_date": "2026-01-27", - "compatibility_flags": ["nodejs_compat"], + "$schema": "node_modules/wrangler/config-schema.json", + "name": "wp-headless", + "main": ".output/server/index.mjs", + "compatibility_date": "2026-02-01", + "compatibility_flags": [ + "nodejs_compat", + "no_nodejs_compat_v2" + ], "observability": { "enabled": true }, "preview_urls": false, "assets": { "binding": "ASSETS", - "directory": "../public" + "directory": ".output/public" } -} +} \ No newline at end of file