Skip to content

Commit

Permalink
Merge pull request #11349 from wellcomecollection/remove-config-redir…
Browse files Browse the repository at this point in the history
…ects

Remove config redirects
  • Loading branch information
gestchild authored Oct 30, 2024
2 parents a718bd6 + db8f4a8 commit 417b23b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions common/next/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,6 @@ const createConfig =
}
return [...rewriteEntries];
},
async redirects() {
return [
{
source: '/articles/:slug',
destination: '/stories/:slug',
statusCode: 301,
},
{
source: '/articles',
destination: '/search/stories',
statusCode: 301,
},
{
source: '/stories/comic',
destination: '/search/stories?format=W7d_ghAAALWY3Ujc',
statusCode: 301,
},
];
},
webpack: (config, { isServer, webpack }) => {
config.plugins.push(
new webpack.NormalModuleReplacementPlugin(
Expand Down

0 comments on commit 417b23b

Please sign in to comment.