gatsby-plugin-redirects

Manage website redirects from a single json file

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gatsby-plugin-redirects
1.0.05 years ago5 years agoMinified + gzip package size for gatsby-plugin-redirects in KB

Readme

gatsby-plugin-redirects
Manage redirects from a single file for static hosting.
If you're using a hosting provider that doesn't offer built in redirect support you can use this plugin to create static HTML files with the redirect meta tag.

Installation

npm install --save gatsby-plugin-redirects

Usage

// gatsby-config.js
module.exports = {
  plugins: [
    'gatsby-plugin-redirects'
  ]
}

Then create a redirects.json file in the root of your project:
[
  {
    "from": "/old/path",
    "to": "/new/path"
  }
]

Related

  • https://github.com/getchalk/gatsby-plugin-meta-redirect

License

MIT