refactor: move wrangler.worker.toml into worker/ directory

- Rename to worker/wrangler.toml
- Update all paths (main, assets directory) to be relative to worker/
- Update package.json, workflow, generate-toml.js, .dockerignore
- Fix .gitignore to only ignore root wrangler.toml
This commit is contained in:
MarSeventh
2026-04-25 20:31:41 +08:00
parent b70d0a6f89
commit 92f60ecdd8
6 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ jobs:
if: steps.check.outputs.skip != 'true'
run: node worker/generate-routes.js
- name: Generate wrangler.worker.toml
- name: Generate wrangler config
if: steps.check.outputs.skip != 'true'
env:
WORKER_NAME: ${{ inputs.worker_name || secrets.WORKER_NAME }}
@@ -80,4 +80,4 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --config wrangler.worker.toml
command: deploy --config worker/wrangler.toml