feat(admin): enhance operations guidance and session handling
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
This commit is contained in:
@@ -7,7 +7,23 @@ const allowedDevOrigins = parseAllowedDevOrigins(process.env.ALLOWED_DEV_ORIGINS
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
...(allowedDevOrigins.length > 0 ? { allowedDevOrigins } : {}),
|
||||
reactCompiler: true,
|
||||
reactCompiler: process.env.NODE_ENV !== "development",
|
||||
turbopack: {},
|
||||
experimental: {
|
||||
preloadEntriesOnStart: false,
|
||||
webpackMemoryOptimizations: true,
|
||||
},
|
||||
onDemandEntries: {
|
||||
maxInactiveAge: 10_000,
|
||||
pagesBufferLength: 1,
|
||||
},
|
||||
webpack(config, { dev }) {
|
||||
if (dev) {
|
||||
config.cache = false;
|
||||
}
|
||||
|
||||
return config;
|
||||
},
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user