2024-09-05 22:29:12 +02:00
|
|
|
import { vitePlugin as remix } from "@remix-run/dev";
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
2024-06-08 21:02:12 +02:00
|
|
|
|
|
|
|
export default defineConfig({
|
2024-09-05 22:29:12 +02:00
|
|
|
plugins: [
|
|
|
|
remix({
|
|
|
|
future: {
|
|
|
|
v3_fetcherPersist: true,
|
|
|
|
v3_relativeSplatPath: true,
|
|
|
|
v3_throwAbortReason: true,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
tsconfigPaths(),
|
|
|
|
],
|
|
|
|
server: {
|
|
|
|
proxy: {
|
|
|
|
"/api": {
|
|
|
|
target: "http://localhost:5000",
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
},
|
2024-09-15 00:03:15 +02:00
|
|
|
hmr: {
|
|
|
|
host: "localhost",
|
|
|
|
protocol: "ws",
|
|
|
|
},
|
2024-09-05 22:29:12 +02:00
|
|
|
},
|
2024-06-08 21:02:12 +02:00
|
|
|
});
|