refactor: use vite instead of CRA

This commit is contained in:
2026-04-04 14:57:32 +02:00
parent 02872f61ce
commit 408adf4b4d
16 changed files with 1005 additions and 9367 deletions
+22
View File
@@ -0,0 +1,22 @@
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,
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './vitest.setup.ts',
},
};
});