You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(@netlify/vite-plugin-react-router): add edge support (#562)
This adds opt-in support for deploying React Router 7 apps to Netlify Edge Functions (Deno runtime) via the `edge: boolean` plugin option. Previously, the plugin only supported Netlify Functions (Node.js runtime).
- Add `edge?: boolean` option to Vite plugin factory
- When `edge` is enabled:
- Configure Vite SSR build with `target: 'webworker'` and other Deno-compatible build config
- Generate an edge function in `.netlify/v1/edge-functions/`, instead of a function `.netlify/v1/functions/`
- Add `excludedPaths?: string[]` option to allow users to exclude paths from the React Router handler. Required when using `edge: true` and the project also has its own Netlify Functions with a configured `path`, otherwise only the RR handler runs on all dynamic paths.
0 commit comments