gatsby-plugin-redirects

1.0.0 • Public • Published

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

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i gatsby-plugin-redirects

Weekly Downloads

813

Version

1.0.0

License

MIT

Unpacked Size

2.64 kB

Total Files

5

Last publish

Collaborators

  • johno