22 lines
513 B
JavaScript
22 lines
513 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve } from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
// Vite looks for .env files in the root by default.
|
|
// We point it to the project root (2 levels up)
|
|
envDir: resolve(__dirname, '../../'),
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
build: {
|
|
outDir: 'build',
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/setupTests.js',
|
|
},
|
|
});
|