From 21a7036ef5363f62fe45021ce55ab89820dfd2dd Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Wed, 28 Jan 2026 21:12:43 -0500 Subject: [PATCH] feat: all of wrangler config in nuxt.config.ts --- wp-content/themes/moonshine/nuxt.config.ts | 15 +++++++++++++-- wp-content/themes/moonshine/wrangler.jsonc | 21 --------------------- 2 files changed, 13 insertions(+), 23 deletions(-) delete mode 100644 wp-content/themes/moonshine/wrangler.jsonc diff --git a/wp-content/themes/moonshine/nuxt.config.ts b/wp-content/themes/moonshine/nuxt.config.ts index 9cb45ab..5c1d256 100644 --- a/wp-content/themes/moonshine/nuxt.config.ts +++ b/wp-content/themes/moonshine/nuxt.config.ts @@ -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/", + }, }, }, }, diff --git a/wp-content/themes/moonshine/wrangler.jsonc b/wp-content/themes/moonshine/wrangler.jsonc deleted file mode 100644 index a2c56bb..0000000 --- a/wp-content/themes/moonshine/wrangler.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -/** - * For more details on how to configure Wrangler, refer to: - * https://developers.cloudflare.com/workers/wrangler/configuration/ - */ -{ - "$schema": "node_modules/wrangler/config-schema.json", - "main": "./.output/server/index.mjs", - /** - * Static Assets Binding - */ - "assets": { - "binding": "ASSETS", - "directory": "./.output/public/" - }, - /** - * Observability & Analytics - */ - "observability": { - "enabled": true - }, -} \ No newline at end of file