Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 add slash for path to redirect (#6875)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitra-deriv authored Jan 30, 2024
1 parent 88a5e31 commit 1960f6b
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const BuildPage = (page, actions) => {
})
createRedirect({
fromPath: `/contact-us`,
toPath: `/contact_us`,
toPath: `/contact_us/`,
redirectInBrowser: true,
isPermanent: true,
})
Expand Down Expand Up @@ -423,19 +423,23 @@ exports.onCreateWebpackConfig = ({ stage, actions, loaders, getConfig }, { ...op
usedExports: true,
},
plugins: [
new StylelintPlugin({...style_lint_options, ...options}),
new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1}),
new StylelintPlugin({ ...style_lint_options, ...options }),
new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }),
],
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
},
...((stage === 'build-html' || stage === 'develop-html') ? {
module: {
rules: [{
test: /analytics/,
use: loaders.null()
}]
}
} : {}),
...(stage === 'build-html' || stage === 'develop-html'
? {
module: {
rules: [
{
test: /analytics/,
use: loaders.null(),
},
],
},
}
: {}),
})
}
}

0 comments on commit 1960f6b

Please sign in to comment.