Isolate CI database journey and stabilize E2E dependency cache
ci / module boundaries / boundaries (push) Successful in 7s
ci / db / db (push) Failing after 29s
ci / api / api (push) Successful in 52s
ci / ts / ts (packages + web) (push) Successful in 4m22s

This commit is contained in:
mrleo1nid committed 2026-10-30 11:05:13 +03:00
1 parent 82bf015283
commit bbd629dcf8
3 files changed
+45 -4

No files matched your search

+9
View File
@@ -4,6 +4,15 @@ import { defineConfig } from 'vite';
export default defineConfig({
plugins: [react()],
// Keep Vitest's dependency cache separate from the browser test server.
cacheDir: process.env.VITE_E2E === '1' ? 'node_modules/.vite-e2e' : undefined,
optimizeDeps: process.env.VITE_E2E === '1' ? {
// Lazy routes and workers must be scanned before browsers cache React chunks.
// Late discovery otherwise mixes cached and newly optimized React instances
// across full document navigations when HMR is disabled.
entries: ['index.html', 'src/**/*.{ts,tsx}', '!src/**/*.test.{ts,tsx}', '!src/**/*.d.ts', '!src/test/**'],
include: ['react', 'react-dom', 'react-dom/client', 'react/jsx-runtime', 'react/jsx-dev-runtime'],
} : undefined,
build: {
target: 'es2022',
},