Files
2024-10-02 08:41:56 -05:00

25 lines
499 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { css } from 'css-configuration';
const PORT = process.env.PORT || 3000;
export default defineConfig({
plugins: [react()],
css,
server: {
proxy: {
'/api': {
target: `http://localhost:${PORT}`,
changeOrigin: true,
secure: false,
},
},
},
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['@testing-library/jest-dom/vitest'],
},
});