Skip to content
HOC to redirect to any URL in NextJS both in client and server
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
.npmrc
README.md
index.js
package.json

README.md

nextjs-redirect

Redirect to any URL in NextJS both in client and server

Install

npm install nextjs-redirect

Usage

// pages/whatever.js
import redirect from 'nextjs-redirect'
export default redirect('https://www.google.com') // site to redirect

License

MIT

Author

me
Pablo Varela
You can’t perform that action at this time.