diff --git a/next.config.js b/next.config.js index ff2049de6..6f508f701 100644 --- a/next.config.js +++ b/next.config.js @@ -1,3 +1,5 @@ +const redirects = require("./redirects.json"); + /** @type {import('next').NextConfig} */ const nextConfig = { trailingSlash: true, @@ -6,13 +8,7 @@ const nextConfig = { styledComponents: true, }, async redirects() { - return [ - { - source: "/pt-BR/", - destination: "/", - permanent: true, - }, - ]; + return redirects; }, async headers() { return [ diff --git a/redirects.json b/redirects.json new file mode 100644 index 000000000..08aed537b --- /dev/null +++ b/redirects.json @@ -0,0 +1,7 @@ +[ + { + "source": "/pt-BR/", + "destination": "/", + "permanent": true + } +]