Skip to content
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

Support Cloudflare Workers #1

Closed
brillout opened this issue Feb 20, 2021 · 1 comment
Closed

Support Cloudflare Workers #1

brillout opened this issue Feb 20, 2021 · 1 comment
Labels
enhancement ✨ New feature or request

Comments

@brillout
Copy link
Member

In principle, vite-pluign-ssr can be used with Cloudflare Workers; there are no hard dependencies on Node.js APIs.

If I remember correctly, a Cloudlare Worker is defined as a single JS file, which means that the entire runtime needs to be bundled in a single file. Super neat would be a vite-plugin-cloudflare that does this and which is compatible with vite-plugin-ssr.

cc @schickling

@brillout brillout added the enhancement ✨ New feature or request label Mar 17, 2021
brillout added a commit that referenced this issue Apr 7, 2021
BREAKING CHANGE: `import ssr from 'vite-plugin-ssr'` now throws an error; use `import ssr from 'vite-plugin-ssr/plugin'` instead.
brillout added a commit that referenced this issue Apr 8, 2021
@brillout brillout changed the title How to use with Cloudflare Workers Support Cloudflare Workers Apr 8, 2021
brillout added a commit that referenced this issue Apr 10, 2021
@brillout
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant