This commit is contained in:
parent
f5d5e22884
commit
8ff5397e10
|
|
@ -93,7 +93,7 @@ export default async function RootLayout({
|
|||
resources={resources}>
|
||||
<Toaster />
|
||||
<Providers attribute="class" defaultTheme="system" enableSystem>
|
||||
{/* <ConsoleSilencer /> */}
|
||||
<ConsoleSilencer />
|
||||
<div className="flex min-h-screen flex-col">
|
||||
<main className="flex flex-1 flex-col bg-muted/0.3">
|
||||
{/* <Header /> */}
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ const nextConfig = {
|
|||
esmExternals: "loose",
|
||||
},
|
||||
compiler: {
|
||||
removeConsole: false, // 保留所有模式中的 console.log
|
||||
//removeConsole: process.env.NODE_ENV === 'production' ? { exclude: ['error'] } : false, // ✅ 用 NODE_ENV
|
||||
removeConsole: yes, // 保留所有模式中的 console.log
|
||||
removeConsole: process.env.NODE_ENV === 'production' ? { exclude: ['error'] } : false, // ✅ 用 NODE_ENV
|
||||
emotion: true,
|
||||
},
|
||||
webpack: (config, { isServer }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue