Skip to content

Commit

Permalink
fix: revert admin redirect (#9728)
Browse files Browse the repository at this point in the history
Resolves issue created in #9269

<!--
  Q. Which branch should I use for my pull request?
  A. Use `master` branch (probably).

  Q. Which branch if my change is a bug fix for Gatsby v1?
  A. In this case, you should use the `v1` branch

  Q. Which branch if I'm still not sure?
  A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :)

  Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2.

  Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/
-->
  • Loading branch information
zslabs authored and pieh committed Nov 6, 2018
1 parent 5b4e0b5 commit 88a671a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/gatsby-plugin-netlify-cms/src/gatsby-node.js
Expand Up @@ -146,13 +146,3 @@ exports.onCreateWebpackConfig = (
webpack(config).run()
}
}

exports.onPostBuild = ({ actions }, { publicPath = `admin` }) => {
const { createRedirect } = actions

createRedirect({
fromPath: `/${publicPath}`,
toPath: `/${publicPath}/`,
isPermanent: true,
})
}

0 comments on commit 88a671a

Please sign in to comment.