Middleware and login updates

This commit is contained in:
Darren Clarke 2023-02-22 13:05:52 +00:00
parent 484e8689a4
commit 4517241ead
23 changed files with 144 additions and 112 deletions

View file

@ -3,6 +3,7 @@ module.exports = {
locales: ["en", "fr"],
defaultLocale: "en",
},
/*
async redirects() {
return [
{
@ -13,15 +14,17 @@ module.exports = {
];
},
async rewrites() {
return [
{
source: "/zammad",
destination: `http://link-shell-zammad-proxy-1:3000`,
},
{
source: "/zammad/:path*",
destination: `http://link-shell-zammad-proxy-1:3000/:path*`,
},
];
},
return {
beforeFiles: [
{
source: "/assets/:path*",
destination: `/zammad/assets/:path*`,
},
{
source: "/api/v1/:path*",
destination: `/zammad/api/v1/:path*`,
},
],
};
}, */
};