mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
32 lines
631 B
TypeScript
32 lines
631 B
TypeScript
import { one } from "one/vite";
|
|
import type { UserConfig } from "vite";
|
|
|
|
export default {
|
|
ssr: {
|
|
noExternal: ["@tanstack/react-query", "@tanstack/react-query-devtools"],
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: process.env.KYOO_URL ?? "http://back/api",
|
|
changeOrigin: true,
|
|
// without this we have two /api at the start
|
|
rewrite: (path) => path.replace(/^\/api/, ""),
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
one({
|
|
deps: {
|
|
"@expo/html-elements": {
|
|
"**/*.js": ["jsx"],
|
|
},
|
|
"inline-style-prefixer/lib": "interop",
|
|
yoshiki: {
|
|
"**/*.tsx": ["jsx"],
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
} satisfies UserConfig;
|