From 49e783139488e9efd42998b82b4236ed3e152553 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 30 Aug 2018 17:23:55 +0200 Subject: [PATCH] add gatsby-plugin-meta-redirect --- gatsby-config.js | 6 +++++- package.json | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gatsby-config.js b/gatsby-config.js index 0e7c5953..892046d9 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -4,6 +4,9 @@ const yaml = require('js-yaml') const meta = yaml.load(fs.readFileSync('./content/meta.yml', 'utf8')) const { url } = meta +// required for gatsby-plugin-meta-redirect +require('regenerator-runtime/runtime') + module.exports = { siteMetadata: { siteUrl: `${url}` @@ -109,6 +112,7 @@ module.exports = { 'gatsby-plugin-sharp', 'gatsby-plugin-sitemap', 'gatsby-plugin-catch-links', - 'gatsby-redirect-from' + 'gatsby-redirect-from', + 'gatsby-plugin-meta-redirect' ] } diff --git a/package.json b/package.json index 8e450e12..13974c72 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "gatsby-plugin-catch-links": "^2.0.2-rc.1", "gatsby-plugin-lunr": "^1.1.0", "gatsby-plugin-matomo": "^0.5.0", + "gatsby-plugin-meta-redirect": "^1.1.0", "gatsby-plugin-react-helmet": "^3.0.0-rc.1", "gatsby-plugin-sass": "^2.0.0-rc.1", "gatsby-plugin-sharp": "^2.0.0-rc.2",