Skip to content

alpha: export unenv option #4193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

ryoppippi
Copy link

@ryoppippi ryoppippi commented May 17, 2025

I'd like to test alpha with cloudflare workers so I created this PR

This pull request introduces support for a new unenv option in the nitroPlugin and updates the schema to validate this new option. The changes ensure that the unenv configuration is properly passed and handled throughout the plugin.

Addition of unenv option:

Schema update:

@ryoppippi ryoppippi changed the title feat: export unenv option alpha: export unenv option May 17, 2025
@ryoppippi
Copy link
Author

Alternatively, we can include unenv in this plugin and automatically set cloudflare's unenv when target is for cloudflare

@schiller-manuel
Copy link
Contributor

we will not expose nitro options for building. we are investigating how we can properly support cloudflare

@ryoppippi
Copy link
Author

Oh okay, so if I can help you let me know

@ryoppippi
Copy link
Author

I just want to use it on CF worker!
Also we can deprecate CF pages build

@ryoppippi
Copy link
Author

I tested that @cloudflare/vite-plugin works with devinxi start

@SnowSquire
Copy link

I tested that @cloudflare/vite-plugin works with devinxi start

did you need to make any changes or did this work out of the box? i'm having issues, so if you have a repo of that test that'd be greatly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants