Merge pull request #1458 from SkynetLabs/enable-accounts-maintenance
add accounts maintenance mode redirect
This commit is contained in:
commit
a71f79f91e
|
@ -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