vite: cloudflare preset load context - #8649
Conversation
🦋 Changeset detectedLatest commit: 1917bc3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
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 |
since we dropped the term "adapter" in favor of "preset" its needs less clarification
|
🤖 Hello there, We just published version Thanks! |
|
🤖 Hello there, We just published version Thanks! |
|
@pcattori Is I'm using a custom Express server, so it would be nice if I could set the load context in the Vite dev server as well. |
|
@kiliman : no, its not considerd public API. The idea is that for Node-based custom servers, you can use the same server for both dev and prod where you can choose to delegate asset handling and route handling to Vite in dev. In that world, you already have direct access to The issue with CF is that (as of today) Vite can't delegate server code execution to other runtimes (like |
|
True. Thanks! |
|
🤖 Hello there, We just published version Thanks! |
Closes: #
Testing Strategy: