observatoire

This commit is contained in:
alma 2025-05-06 22:06:15 +02:00
parent f414918814
commit 02bde3560f
2 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,16 @@ export default async function RootLayout({
return (
<html lang="fr">
<head>
<script dangerouslySetInnerHTML={{
__html: `
// Disable React DevTools in production
if (typeof window !== 'undefined' && typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function() {};
}
`
}} />
</head>
<body className={inter.className}>
<Providers>
<LayoutWrapper

View File

@ -16,6 +16,11 @@ const nextConfig = {
images: {
unoptimized: true,
},
devIndicators: {
buildActivity: false,
buildActivityPosition: 'bottom-right',
autoPrerender: false,
},
experimental: {
webpackBuildWorker: true,
parallelServerBuildTraces: true,