19 lines
521 B
JavaScript
19 lines
521 B
JavaScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import basicSsl from '@vitejs/plugin-basic-ssl'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [svelte(), basicSsl()],
|
|
server: {
|
|
// Dev proxy so the frontend can call /api without CORS in production-style setups
|
|
proxy: {
|
|
'/api': 'http://localhost:8000',
|
|
},
|
|
},
|
|
test: {
|
|
// Vitest (spec §8.4): only for stores/format logic, not components
|
|
include: ['src/**/*.test.js'],
|
|
},
|
|
})
|