summaryrefslogtreecommitdiff
path: root/vite.config.js
blob: 61ba597dbe2999612c22a392e98cf4ff60410d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [sveltekit()],
  // Tell Vitest to use the `browser` entry points in `package.json` files,
  // even though it's running in Node
	resolve: process.env.VITEST ? { conditions: ['browser'] } : undefined,
  server: {
    fs: {
      allow: [
        'ui'
      ]
    },
    proxy: {
      '/api': process.env['API_SERVER'] || 'http://localhost:64209',
    },
  },
});