Matrix/Webserver/vite.config.ts
2024-02-22 10:35:06 +01:00

19 lines
452 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
import { setGlobalDispatcher, ProxyAgent } from 'undici'
if (process.env.npm_config_https_proxy)
setGlobalDispatcher(
new ProxyAgent({
uri: new URL(process.env.npm_config_https_proxy).toString()
})
);
export default defineConfig({
plugins: [sveltekit()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
exclude: ['src/playwright']
}
});