1.0.1 • Published 5 years ago

next-plugin-netlify-redirects v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Next.js + Netlify Redirects

Create a Netlify _redirects file that's compatible with dynamic routes during a production build in your Next.js project

Installation

npm install --save next-plugin-netlify-redirects

or

yarn add next-plugin-netlify-redirects

Usage with environment variables

Create a next.config.js:

// next.config.js
const withNetlifyRedirects = require(`next-plugin-netlify-redirects`);

module.exports = withNetlifyRedirects({});

Then you can run a build command and a _redirects file will be generated automatically:

npm run build
1.0.1

5 years ago

1.0.0

5 years ago