Skip to content

feat(cloudflare): support vite plugins options#15556

Open
florian-lefebvre wants to merge 1 commit intomainfrom
feat/cf-plugin-options
Open

feat(cloudflare): support vite plugins options#15556
florian-lefebvre wants to merge 1 commit intomainfrom
feat/cf-plugin-options

Conversation

@florian-lefebvre
Copy link
Member

@florian-lefebvre florian-lefebvre commented Feb 17, 2026

Changes

  • Addresses https://github.com/orgs/withastro/projects/21/views/1?pane=issue&itemId=154871760 (feedback from James: we should be able to forward some options to the cf vite plugin)
  • The CF adapter now accepts relevant options from the vite plugin. I chose to use Pick instead of Omit to avoid conflicts with our own options and control better what we support
  • I checked the CF docs on what these options were doing before adding support for them and it made sense to me. I basically omitted all the ones that we already set
  • I had to rely on globalThis to pass options to astro preview

Testing

Manual

Docs

@florian-lefebvre florian-lefebvre self-assigned this Feb 17, 2026
@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Feb 17, 2026
@florian-lefebvre florian-lefebvre marked this pull request as ready for review February 17, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments