🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@netlify/vite-plugin-react-router

Package Overview
Dependencies
Maintainers
17
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/vite-plugin-react-router

React Router 7+ Vite plugin for Netlify

1.0.1
latest
Source
npm
Version published
Maintainers
17
Created
Source

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
  ],
})

Keywords

react-router

FAQs

Package last updated on 04 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts