feat: all of wrangler config in nuxt.config.ts
This commit is contained in:
@@ -54,13 +54,24 @@ export default defineNuxtConfig({
|
||||
deployConfig: true,
|
||||
nodeCompat: true,
|
||||
wrangler: {
|
||||
name: "foobar",
|
||||
// Project name
|
||||
name: "moonshine",
|
||||
// Cloudflare Workers settings
|
||||
compatibility_date: "2026-01-27",
|
||||
main: "./.output/server/index.mjs",
|
||||
observability: { enabled: true },
|
||||
preview_urls: false,
|
||||
// Environment variables
|
||||
vars: {
|
||||
NODE_ENV: "production",
|
||||
NODE_ENV: "staging",
|
||||
NUXT_SITE_URL: siteUrl,
|
||||
NUXT_WP_URL: wpUrl,
|
||||
},
|
||||
// Bindings
|
||||
assets: {
|
||||
binding: "ASSETS",
|
||||
directory: "./.output/public/",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user