mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fix react query in ssr
This commit is contained in:
parent
23a7e7b025
commit
9d60ae3342
@ -81,10 +81,10 @@ export default function Layout() {
|
||||
|
||||
<body className="hoverEnabled">
|
||||
<StyleRegistryProvider registry={registry}>
|
||||
{/* <Providers> */}
|
||||
<Providers>
|
||||
<Slot />
|
||||
{/* <ReactQueryDevtools initialIsOpen={false} /> */}
|
||||
{/* </Providers> */}
|
||||
<ReactQueryDevtools initialIsOpen={false} />
|
||||
</Providers>
|
||||
</StyleRegistryProvider>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,17 +1,10 @@
|
||||
import { one } from "one/vite";
|
||||
// Typed as UserConfig for handy autocomplete
|
||||
import type { UserConfig } from "vite";
|
||||
|
||||
export default {
|
||||
ssr: {
|
||||
// needed to fix ssr error of react-query
|
||||
// noExternal: true,
|
||||
noExternal: ["@tanstack/react-query", "@tanstack/react-query-devtools"],
|
||||
},
|
||||
// optimizeDeps: {
|
||||
// esbuildOptions: {
|
||||
// jsx: "automatic",
|
||||
// },
|
||||
// },
|
||||
plugins: [
|
||||
one({
|
||||
deps: {
|
||||
@ -24,10 +17,6 @@ export default {
|
||||
yoshiki: {
|
||||
"**/*.tsx": ["jsx"],
|
||||
},
|
||||
// yoshiki: "exclude",
|
||||
// "yoshiki > inline-style-prefixer/**": "interop",
|
||||
// "yoshiki > inline-style-prefixer": "interop",
|
||||
// "yoshiki > inline-style-prefixer/lib": "interop",
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user