Middleware and login updates
This commit is contained in:
parent
484e8689a4
commit
4517241ead
23 changed files with 144 additions and 112 deletions
|
|
@ -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*`,
|
||||
},
|
||||
],
|
||||
};
|
||||
}, */
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue