🔧 FIX: Updated deployment command in package.json and restructured wrangler.jsonc for asset configuration and compatibility date

This commit is contained in:
joaodunas
2025-12-21 13:18:19 +00:00
parent 4e92397cf0
commit 3f472fb023
2 changed files with 5 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
"build": "tsc --noEmit && vite build", "build": "tsc --noEmit && vite build",
"lint": "tsc && eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "lint": "tsc && eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview", "preview": "vite preview",
"deploy": "npm run build && npx wrangler pages deploy", "deploy": "npm run build && npx wrangler deploy",
"cf-typegen": "npx wrangler types" "cf-typegen": "npx wrangler types"
}, },
"dependencies": { "dependencies": {

View File

@@ -1,5 +1,8 @@
{ {
"$schema": "node_modules/wrangler/config-schema.json", "$schema": "node_modules/wrangler/config-schema.json",
"name": "leakhub", "name": "leakhub",
"pages_build_output_dir": "./dist", // Workers Assets configuration - replaces Pages' pages_build_output_dir
"assets": { "directory": "./dist" },
// Required compatibility date for Workers runtime features
"compatibility_date": "2025-06-05",
} }