-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathvite.config.ts
More file actions
33 lines (32 loc) · 727 Bytes
/
vite.config.ts
File metadata and controls
33 lines (32 loc) · 727 Bytes
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
26
27
28
29
30
31
32
33
import legacy from "@vitejs/plugin-legacy";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
// https://vitejs.dev/config/
export default defineConfig({
define: {
"process.env.npm_package_version": JSON.stringify(
process.env.npm_package_version
),
"process.env.JEST_WORKER_ID": JSON.stringify(false),
},
plugins: [
react(),
legacy({
targets: ["defaults", "not IE 11"],
}),
],
server: {
port: 1234,
proxy: {
"/.netlify/functions/auth": "http://localhost:9999",
},
},
optimizeDeps: {
// disabled: false,
},
test: {
globals: true,
globalSetup: ["global-test-setup.ts"],
environment: "jsdom",
},
});