Files
pipu-music/apps/web/vite.config.ts
T
mrleo1nid f4681da876
ci / ts / ts (packages + web) (push) Successful in 6m9s
release / release (версия и заметки) (push) Successful in 6s
release / desktop (Linux и Windows в релиз) (push) Successful in 12m48s
release / android (APK в релиз) (push) Successful in 4m35s
release / prune (старые файлы и прогоны) (push) Successful in 6s
Stabilize E2E server and retain failure diagnostics
2026-10-29 23:17:48 +03:00

29 lines
848 B
TypeScript

/// <reference types="vitest/config" />
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [react()],
build: {
target: 'es2022',
},
server: {
// E2E installs a stateful fake API in the page. A dev-server reload would
// discard it in the middle of a scenario (including other parallel workers).
hmr: process.env.VITE_E2E === '1' ? false : undefined,
host: '127.0.0.1',
port: 5173,
strictPort: true,
// В разработке API поднимается docker compose (deploy/compose.dev.yaml) на :8080
proxy: {
'/api': 'http://localhost:8080',
'/healthz': 'http://localhost:8080',
},
},
test: {
environment: 'jsdom',
setupFiles: ['src/test/setup.ts'],
exclude: ['e2e/**', 'node_modules/**'],
},
});