Files
kemkas-frontend/frontend/vite.config.ts
T
morbalint 7c682373a5 refactor: use vite instead of CRA (#81)
* refactor: use vite instead of CRA

* skip deployments for now

* local env fixes
2026-04-04 16:21:09 +02:00

24 lines
553 B
TypeScript

import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
const port = Number(env.PORT || 5173);
const https = env.HTTPS === 'true';
return {
plugins: [react()],
server: {
port,
https,
strictPort: true,
allowedHosts: ['localhost', 'host.docker.internal', 'frontend'],
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './vitest.setup.ts',
},
};
});