Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
omariosouto committed Feb 17, 2023
1 parent a043720 commit 2f7cb21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 3 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const redirects = require("./redirects.json");

/** @type {import('next').NextConfig} */
const nextConfig = {
trailingSlash: true,
Expand All @@ -6,13 +8,7 @@ const nextConfig = {
styledComponents: true,
},
async redirects() {
return [
{
source: "/pt-BR/",
destination: "/",
permanent: true,
},
];
return redirects;
},
async headers() {
return [
Expand Down
7 changes: 7 additions & 0 deletions redirects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"source": "/pt-BR/",
"destination": "/",
"permanent": true
}
]

0 comments on commit 2f7cb21

Please sign in to comment.