From 2f7cb21ac6492fd6a40fe5c07523a13137ae16ca Mon Sep 17 00:00:00 2001 From: Mario Souto <13791385+omariosouto@users.noreply.github.com> Date: Fri, 17 Feb 2023 10:01:21 -0300 Subject: [PATCH] update --- next.config.js | 10 +++------- redirects.json | 7 +++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 redirects.json 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 + } +]