aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/vite.config.ts
blob: fe6af7d431f93dfb5bf24262fb0436b17c891a3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    proxy: {
      '/api': 'http://127.0.0.1:4994',
      '/image': 'http://127.0.0.1:4994',
    }
  },
  test: {
    exclude: ['tests/**', 'node_modules/**'],
    environment: 'jsdom',
    setupFiles: './src/setupTests.ts', // Verify if this exists, but mainly exclude is key
    // actually let's just use defaults + exclude
    globals: true, // if needed
  }
})