chore(frontend): consolidate wrangler config to jsonc

- Remove redundant wrangler.toml (old Pages config)
- Rename worker from enchun-frontend to website-enchun-mgr
- Keep wrangler.jsonc as single source of truth
This commit is contained in:
2026-03-11 18:48:13 +08:00
parent 2e32d52133
commit 03760b23a5
2 changed files with 2 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
{ {
"$schema": "./node_modules/wrangler/config-schema.json", "$schema": "./node_modules/wrangler/config-schema.json",
"name": "enchun-frontend", "name": "website-enchun-mgr",
"main": "./dist/_worker.js/index.js", "main": "./dist/_worker.js/index.js",
"compatibility_date": "2025-01-19", "compatibility_date": "2025-01-19",
"compatibility_flags": [ "compatibility_flags": [
@@ -14,7 +14,7 @@
}, },
"env": { "env": {
"production": { "production": {
"name": "enchun-frontend-production", "name": "website-enchun-mgr-production",
"vars": { "vars": {
"PAYLOAD_CMS_URL": "https://enchun-admin.anlstudio.cc" "PAYLOAD_CMS_URL": "https://enchun-admin.anlstudio.cc"
} }

View File

@@ -1,9 +0,0 @@
name = "enchun-frontend"
compatibility_date = "2024-01-01"
pages_build_output_dir = "dist"
[vars]
PAYLOAD_CMS_URL = "https://enchun-admin.anlstudio.cc"
[env.production.vars]
PAYLOAD_CMS_URL = "https://enchun-admin.anlstudio.cc"