Repository navigation
ONE-548 wrangler 配置:wrangler.jsonc + wrangler devDep + .gitignore - #12
Merged
Merged
Conversation
- 新增 wrangler.jsonc:name=hub、compatibility_date、assets.directory=./dist、previews={}
- wrangler 锁定 4.153.0 加入 devDependencies,同步 pnpm-lock.yaml
- .gitignore 补 .wrangler/
ONE-548
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://feat-one-548-wrangler-config-workerhub.pama.workers.dev (commit 23bbf1c)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ONE-548 实现:补 wrangler 配置
主站改走 Cloudflare Workers 静态资源部署,补齐缺失的 wrangler 配置(本 PR 仅配置,不动代码/页面)。
改动(3 处)
wrangler.jsonc—name: "hub"(冻结契约)、compatibility_date: "2026-10-27"、assets.directory: "./dist"、previews: {};无 bindings / Durable Objects / 数据库。package.json+pnpm-lock.yaml—wrangler锁定4.153.0(精确版本,无 caret)加入devDependencies,lockfile 同步。.gitignore— 补.wrangler/。自测
pnpm build:24 页面构建成功,产物落在dist/(与assets.directory一致)。pnpm exec wrangler deploy --dry-run:配置解析通过,Read 72 files from the assets directory .../dist,No bindings found.,--dry-run: exiting now.previews字段被 wrangler 4.153.0 schema 识别(对照实验:换成未知名previewsX会报Unexpected fields found in top-level field,previews不报)。pnpm lint(astro check + prettier --check):0 errors / 0 warnings,格式全通过。pnpm install --frozen-lockfile通过;pnpm test120 pass / 0 fail / 1 skipped。.wrangler/已被忽略(git check-ignore命中.gitignore:18)。未改动
.github/workflows/deploy.yml及CLOUDFLARE_PAGES_DEPLOY_HOOK遗留项未动;package.json 既有 scripts 未动。Closes/关联:ONE-548