feat(my-pages): redirect to overview in middleware

This commit is contained in:
Michael Zetterberg
2024-05-19 19:39:41 +02:00
parent 068f19edb7
commit 8772d30b25
3 changed files with 26 additions and 34 deletions

View File

@@ -46,40 +46,6 @@ const nextConfig = {
return config
},
redirects() {
return [
{
source: myPages.da,
destination: overview.da,
permanent: false,
},
{
source: myPages.de,
destination: overview.de,
permanent: false,
},
{
source: myPages.en,
destination: overview.en,
permanent: false,
},
{
source: myPages.fi,
destination: overview.fi,
permanent: false,
},
{
source: myPages.no,
destination: overview.no,
permanent: false,
},
{
source: myPages.sv,
destination: overview.sv,
permanent: false,
},
]
},
rewrites() {
return {
beforeFiles: [