blob: 89623c050a046c412c3ebe7b3aa9bca9ecfa1c7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { reactRouter } from "@react-router/dev/vite";
import { execSync } from "child_process";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
const commitHash = execSync("git rev-parse --short HEAD").toString().trim();
// https://vitejs.dev/config/
export default defineConfig({
define: {
__COMMIT_HASH__: JSON.stringify(commitHash),
},
plugins: [reactRouter(), tsconfigPaths()],
server: {
proxy: {
"^/api": {
target: "https://localhost:7240",
secure: false,
},
},
},
});
|