Fix wrangler deploy to specify config file location

- Added --config wrangler.toml flag to deploy script
- Fixes CI/CD deployment error: 'Missing entry-point to Worker script'
This commit is contained in:
2025-11-07 23:07:25 +01:00
parent 5d8a432de0
commit 7b733df1e2

View File

@@ -9,7 +9,7 @@
"dev": "ts-node src/index.ts",
"start": "node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"deploy": "npm run build && npx wrangler deploy"
"deploy": "npm run build && npx wrangler deploy --config wrangler.toml"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20251014.0",