forked from skupperproject/skupper-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
33 lines (28 loc) · 936 Bytes
/
vite.config.ts
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 react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
export default defineConfig(() => ({
plugins: [react()],
define: {
'process.env.OBSERVER_URL': JSON.stringify(process.env.OBSERVER_URL || ''),
'process.env.BRAND_APP_LOGO': JSON.stringify(process.env.BRAND_APP_LOGO || ''),
'process.env.API_VERSION': JSON.stringify(process.env.API_VERSION || ''),
'process.env.USE_MOCK_SERVER': JSON.stringify(process.env.USE_MOCK_SERVER),
'process.env.MOCK_ITEM_COUNT': JSON.stringify(process.env.MOCK_ITEM_COUNT),
'process.env.MOCK_RESPONSE_DELAY': JSON.stringify(process.env.MOCK_RESPONSE_DELAY)
},
base: './',
server: {
port: 3000
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./vite.setup.ts'],
coverage: {
reporter: ['text', 'lcov'],
all: false,
include: ['**/src/**'],
exclude: ['**/src/config/**']
}
}
}));