enable maintenance mode
This commit is contained in:
parent
a124b8a9ec
commit
9018721945
|
@ -0,0 +1,15 @@
|
||||||
|
module.exports = {
|
||||||
|
async redirects() {
|
||||||
|
const redirects = [];
|
||||||
|
|
||||||
|
if (process.env.ACCOUNTS_MAINTENANCE === "true") {
|
||||||
|
redirects.push({
|
||||||
|
source: "/((?!maintenance$).*)",
|
||||||
|
destination: "/maintenance",
|
||||||
|
permanent: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirects;
|
||||||
|
},
|
||||||
|
};
|
Reference in New Issue