feat:重构UI
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const isProd = process.env.NODE_ENV === 'production'
|
||||
|
||||
const nextConfig = {
|
||||
output: 'standalone',
|
||||
// Avoid dev/prod builds clobbering each other on Windows (causing missing _next/static files).
|
||||
...(isProd ? { output: 'standalone' } : {}),
|
||||
distDir: isProd ? '.next-prod' : '.next-dev',
|
||||
webpack: (config, { dev }) => {
|
||||
// Webpack filesystem cache is occasionally flaky on Windows and can lead to missing vendor-chunks.
|
||||
if (dev) config.cache = false
|
||||
return config
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
|
||||
Reference in New Issue
Block a user