fix: Wrangler config
This commit is contained in:
@@ -56,9 +56,7 @@ export default defineNuxtConfig({
|
|||||||
nitro: {
|
nitro: {
|
||||||
preset: "cloudflare_module",
|
preset: "cloudflare_module",
|
||||||
cloudflare: {
|
cloudflare: {
|
||||||
deployConfig: true,
|
|
||||||
wrangler: {
|
wrangler: {
|
||||||
name: "wp-headless",
|
|
||||||
vars: {
|
vars: {
|
||||||
NODE_ENV: "staging",
|
NODE_ENV: "staging",
|
||||||
NUXT_SITE_URL: siteUrl,
|
NUXT_SITE_URL: siteUrl,
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/wrangler/config-schema.json",
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
"main": "./output/server/index.mjs",
|
"name": "wp-headless",
|
||||||
"compatibility_date": "2026-01-27",
|
"main": ".output/server/index.mjs",
|
||||||
"compatibility_flags": ["nodejs_compat"],
|
"compatibility_date": "2026-02-01",
|
||||||
|
"compatibility_flags": [
|
||||||
|
"nodejs_compat",
|
||||||
|
"no_nodejs_compat_v2"
|
||||||
|
],
|
||||||
"observability": {
|
"observability": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"preview_urls": false,
|
"preview_urls": false,
|
||||||
"assets": {
|
"assets": {
|
||||||
"binding": "ASSETS",
|
"binding": "ASSETS",
|
||||||
"directory": "../public"
|
"directory": ".output/public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user