31 lines
783 B
TypeScript
31 lines
783 B
TypeScript
import path from 'path';
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig(() => {
|
|
return {
|
|
server: {
|
|
port: 5173,
|
|
host: '0.0.0.0',
|
|
},
|
|
plugins: [react()],
|
|
// SECURITY: Do NOT expose GEMINI_API_KEY to frontend - use /api/generate endpoint
|
|
define: {},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, '.'),
|
|
}
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./tests/setup.tsx'],
|
|
include: ['tests/**/*.test.{ts,tsx}'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
include: ['components/**', 'hooks/**'],
|
|
},
|
|
},
|
|
};
|
|
});
|