You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
614 B
26 lines
614 B
import reactRefresh from "@vitejs/plugin-react-refresh";
|
|
import { resolve } from "path";
|
|
import { defineConfig } from "vite";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
(
|
|
process.env.NODE_ENV !== "test"
|
|
? [reactRefresh()]
|
|
: []
|
|
),
|
|
],
|
|
build: {
|
|
rollupOptions: {
|
|
input: resolve(__dirname, `index.html`),
|
|
},
|
|
outDir: `dist/taker`,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": "http://localhost:8000",
|
|
"/alive": "http://localhost:8000",
|
|
},
|
|
},
|
|
});
|
|
|