blob: e66804746e0afc6facb43c515b2083f628a68ca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import { execSync } from "child_process";
import { defineConfig } from "vite";
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(), tailwindcss()],
server: {
proxy: {
"^/(api|backoffice)": {
target: "https://localhost:7240",
secure: false,
},
},
},
resolve: {
tsconfigPaths: true,
},
});
|