Socket
Socket
Sign inDemoInstall

gatsby-plugin-redirects

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-redirects

Manage website redirects from a single json file


Version published
Maintainers
1
Weekly downloads
768
decreased by-22.11%

Weekly downloads

Readme

Source

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"
  }
]
  • https://github.com/getchalk/gatsby-plugin-meta-redirect

License

MIT

FAQs

Last updated on 17 Mar 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc