diff --git a/next.config.js b/next.config.js index d26a76a..691ffb0 100644 --- a/next.config.js +++ b/next.config.js @@ -30,7 +30,7 @@ module.exports = withImages(withFonts(withLess({ async redirects() { return [ - process.env.MAINTENANCE_MODE === "1" ? { source: "/((?!maintenance).*)", destination: "/maintenance", permanent: false } : { source: "/maintenance", destination: "/login", permanent: false }, + process.env.MAINTENANCE_MODE === "1" ? { source: "/((?!maintenance|!?assets).*)", destination: "/maintenance", permanent: false } : { source: "/maintenance", destination: "/login", permanent: false }, { source: '/support', destination: '/support/faq',