mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
fix(layout): add scriptProp so cf rocket lets next-themes script to run
This commit is contained in:
parent
039c242bd4
commit
8f1e4a2ed9
3 changed files with 8 additions and 7 deletions
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -34,7 +34,7 @@
|
|||
"lucide-react": "^0.454.0",
|
||||
"moment": "^2.30.1",
|
||||
"next": "14.2.10",
|
||||
"next-themes": "^0.3.0",
|
||||
"next-themes": "^0.4.3",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-hook-form": "^7.52.2",
|
||||
|
@ -15537,13 +15537,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/next-themes": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.3.0.tgz",
|
||||
"integrity": "sha512-/QHIrsYpd6Kfk7xakK4svpDI5mmXP0gfvCoJdGpZQ2TOrQZmsW0QxjaiLn8wbIKjtm4BTSqLoix4lxYYOnLJ/w==",
|
||||
"version": "0.4.3",
|
||||
"resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.3.tgz",
|
||||
"integrity": "sha512-nG84VPkTdUHR2YeD89YchvV4I9RbiMAql3GiLEQlPvq1ioaqPaIReK+yMRdg/zgiXws620qS1rU30TiWmmG9lA==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"react": "^16.8 || ^17 || ^18",
|
||||
"react-dom": "^16.8 || ^17 || ^18"
|
||||
"react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",
|
||||
"react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"
|
||||
}
|
||||
},
|
||||
"node_modules/next/node_modules/postcss": {
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
"lucide-react": "^0.454.0",
|
||||
"moment": "^2.30.1",
|
||||
"next": "14.2.10",
|
||||
"next-themes": "^0.3.0",
|
||||
"next-themes": "^0.4.3",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-hook-form": "^7.52.2",
|
||||
|
|
|
@ -61,6 +61,7 @@ export default async function RootLayout({
|
|||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
scriptProps={{ "data-cfasync": "false" }}
|
||||
>
|
||||
<StyledComponentsRegistry>
|
||||
<div className="flex min-h-screen flex-col">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue