1.0.1 • Published 10 months ago

@netlify/vite-plugin-react-router v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

React Router Adapter for Netlify

The React Router Adapter for Netlify allows you to deploy your React Router app to Netlify Functions.

To deploy a React Router 7+ site to Netlify, install this package:

How to use

npm install --save-dev @netlify/vite-plugin-react-router

and include the Netlify plugin in your vite.config.ts:

import { reactRouter } from '@react-router/dev/vite'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
import netlifyPlugin from '@netlify/vite-plugin-react-router' // <- add this

export default defineConfig({
  plugins: [
    reactRouter(),
    tsconfigPaths(),
    netlifyPlugin(), // <- add this
  ],
})
1.0.1

10 months ago

1.0.0

1 year ago

0.0.0

1 year ago