From 697b4e946f86920bf483af0de20424e75ab7a7a0 Mon Sep 17 00:00:00 2001 From: gestchild Date: Tue, 29 Oct 2024 17:59:34 +0000 Subject: [PATCH] remove redirects these now happen at the edge lambdas --- common/next/next.config.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/common/next/next.config.js b/common/next/next.config.js index 20989f9d01..a041ca8419 100644 --- a/common/next/next.config.js +++ b/common/next/next.config.js @@ -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(