18 lines
377 B
JavaScript
18 lines
377 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
redirects() {
|
|
return [
|
|
process.env.MAINTENANCE_MODE === '1'
|
|
? {
|
|
source: '/((?!maintenance).*)',
|
|
destination: '/maintenance.html',
|
|
permanent: false
|
|
}
|
|
: null
|
|
].filter(Boolean);
|
|
}
|
|
};
|
|
|
|
module.exports = nextConfig;
|