-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
35 lines (34 loc) · 958 Bytes
/
vite.config.ts
File metadata and controls
35 lines (34 loc) · 958 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
34
35
/// <reference types="vitest/config" />
import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(() => {
return {
build: { outDir: 'dist' },
server: {
port: 3000,
host: '0.0.0.0',
historyApiFallback: true
},
plugins: [react()],
define: {
// Removed GEMINI_API_KEY from client-side bundle for security reasons.
// If client-side access is needed, a backend proxy should be implemented.
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
}
},
test: {
globals: true,
environment: 'node',
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['node_modules', 'dist', '.supabase'],
coverage: {
provider: 'v8' as const,
reporter: ['text', 'html'],
},
}
};
});