Skip to content

cf deploy --dry-run still fails on a migrated Astro + Worker project: "Build Output Specification: no root config found" (1.0.0-beta.29, regression of #18?) #587

Open

Description

@tonydehnke

Summary

After cf migrate on a Wrangler project that serves an Astro static build through a Worker (main + assets.directory + run_worker_first), cf deploy --dry-run runs the Astro build and then fails because no Build Output Specification is written. This looks like the error in #18, which was closed as completed on 2026-09-30, but it reproduces on 1.0.0-beta.29.

Versions

  • cf 1.0.0-beta.29 (project devDependency)
  • wrangler 4.160.0 (project devDependency)
  • astro 7.4.10, output: "static", no Cloudflare adapter
  • Node 22.23.4, npm 10.9.9, Linux

Wrangler config before migration (trimmed)

{
  "name": "example-site",
  "main": "worker/index.ts",
  "compatibility_date": "2026-07-01",
  "compatibility_flags": ["nodejs_compat"],
  "assets": {
    "directory": "./dist",
    "binding": "ASSETS",
    "not_found_handling": "404-page",
    "run_worker_first": true
  },
  "durable_objects": { "bindings": [{ "name": "REQUEST_GATE", "class_name": "RequestGate" }] },
  "migrations": [{ "tag": "request-gate-v1", "new_sqlite_classes": ["RequestGate"] }],
  "kv_namespaces": [{ "binding": "TOKEN_CACHE", "id": "<id>" }],
  "ratelimits": [{ "name": "LEAD_RATE_LIMITER", "namespace_id": "1001", "simple": { "limit": 3, "period": 60 } }],
  "triggers": { "crons": ["0,15,30,45 * * * *"] },
  "preview_urls": true,
  "workers_dev": false
}

package.json build script: astro build (with prebuild/postbuild steps). No @cloudflare/vite-plugin.

Steps

npx cf migrate --dry-run   # "Using the Wrangler bundler…", would update cloudflare.config.ts + wrangler.config.ts, no follow-up items
npx cf migrate --no-install
npx cf deploy --dry-run

cf migrate output: √ Migration complete. It generated a valid-looking cloudflare.config.ts (DO export with sqlite storage, KV, rate limit, cron, assets) and wrangler.config.ts with assetsDirectory: "./dist".

Actual

The Astro build runs and completes (29 page(s) built, [build] Complete!), then:

┌ Error
│ Build Output Specification: no root config found at
│ <project>/.cloudflare/output/v0/config.json.
└

Expected

cf deploy --dry-run bundles worker/index.ts, picks up ./dist as assets, and prints the bindings, the same way wrangler deploy --dry-run does on the unmigrated project (which succeeds with wrangler 4.160.0).

Notes

Activity

  1. added 5 commits that reference this issue on Nov 25, 2026
    6258b7c
    af4ea1f
    17bbff0
    496c2be
    3aaeffa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions