Files
dashboard-cpsp-executive/vite.config.ts
T
2026-09-08 15:21:23 +07:00

31 lines
651 B
TypeScript

/// <reference types="vitest/config" />
import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
},
},
server: {
// Avoid clash with site dashboard-cpsp (:3001 → :8000)
port: 3002,
host: '0.0.0.0',
proxy: {
'/api': {
target: 'http://127.0.0.1:8001',
changeOrigin: true,
},
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './tests/setup.ts',
exclude: ['node_modules/**', 'dist/**'],
},
});