Skip to content

fix(create-cloudflare): astro v6 setup - #12837

Merged
edmundhung merged 3 commits into
mainfrom
edmundhung/fix-astro-c3-setup
Mar 13, 2026
Merged

edmundhung merged 3 commits into
mainfrom
edmundhung/fix-astro-c3-setup

Conversation

@edmundhung

@edmundhung edmundhung commented Mar 10, 2026 •

Copy link
Copy Markdown
Member

Fixes #12829.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: no feature change

A picture of a cute animal (not mandatory, but encouraged)


Open with Devin

@changeset-bot

changeset-bot Bot commented Mar 10, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a388b08

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Mar 10, 2026 •

Copy link
Copy Markdown
create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@12837

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@12837

miniflare

npm i https://pkg.pr.new/miniflare@12837

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@12837

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@12837

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@12837

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@12837

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@12837

wrangler

npm i https://pkg.pr.new/wrangler@12837

commit: a932c14

ask-bonk[bot]

This comment was marked as resolved.

@ask-bonk

ask-bonk Bot commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

I've posted a review on PR #12837 identifying a bug where --template and its value are combined in a single string element in both pages/c3.ts and workers/c3.ts. Since cross-spawn/Node.js spawn passes each array element as a single OS-level argument without splitting on spaces, create-astro will not parse this correctly. I included concrete suggestion comments on both files showing the fix: split the single string into two separate array elements ("--template", "withastro/astro/examples/basics#...") to match the pattern used by other templates in the codebase (e.g., react/pages/c3.ts).

github run

@edmundhung
edmundhung force-pushed the edmundhung/fix-astro-c3-setup branch 2 times, most recently from 8f133eb to 8910e8e Compare March 10, 2026 17:47
@edmundhung
edmundhung marked this pull request as ready for review March 10, 2026 18:04
@edmundhung
edmundhung requested a review from a team as a code owner March 10, 2026 18:04
@workers-devprod

workers-devprod commented Mar 10, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@edmundhung
edmundhung force-pushed the edmundhung/fix-astro-c3-setup branch 2 times, most recently from caa9188 to 5307ba9 Compare March 10, 2026 18:52
@github-actions

github-actions Bot commented Mar 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@edmundhung
edmundhung marked this pull request as draft March 10, 2026 19:51
@edmundhung
edmundhung force-pushed the edmundhung/fix-astro-c3-setup branch 3 times, most recently from 1bae7da to dde4b04 Compare March 11, 2026 11:41
@edmundhung edmundhung changed the title fix(create-cloudflare): astro c3 setup fix(create-cloudflare): astro v6 setup Mar 11, 2026
@edmundhung
edmundhung force-pushed the edmundhung/fix-astro-c3-setup branch 2 times, most recently from f8a939f to 0e44c73 Compare March 13, 2026 11:21
@edmundhung
edmundhung force-pushed the edmundhung/fix-astro-c3-setup branch from 0e44c73 to 8f03bd8 Compare March 13, 2026 11:26
@edmundhung
edmundhung marked this pull request as ready for review March 13, 2026 11:29

@dario-piotrowicz dario-piotrowicz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of updating the wrangler.jsonc files I think that the correct solution here would be to delete those file altogether since npx astro add cloudflare creates them for us

@edmundhung

Copy link
Copy Markdown
Member Author

@dario-piotrowicz deleted the wrangler configs in e869dc5 👍🏼

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 10 additional findings in Devin Review.

Open in Devin Review

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Mar 13, 2026
@edmundhung
edmundhung merged commit 2363d48 into main Mar 13, 2026
45 of 46 checks passed
@edmundhung
edmundhung deleted the edmundhung/fix-astro-c3-setup branch March 13, 2026 19:41
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants