19 lines
603 B
TypeScript
19 lines
603 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { configDefaults } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
// Bind on all interfaces so the dev server is reachable from other devices
|
|
// on the LAN (phone/laptop) when launched via .NET Aspire. Aspire assigns
|
|
// the port; this only widens the host from localhost to 0.0.0.0.
|
|
host: true,
|
|
},
|
|
test: {
|
|
// QA-1: e2e/ gehört Playwright (npm run e2e), nicht vitest.
|
|
exclude: [...configDefaults.exclude, 'e2e/**'],
|
|
},
|
|
})
|