remove unused proxy

This commit is contained in:
waltem01 2024-02-28 11:39:37 +01:00
parent e14ee55ff4
commit 694cdc76ad

View File

@ -1,18 +1,10 @@
import { sveltekit } from '@sveltejs/kit/vite'; import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config'; 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({ export default defineConfig({
plugins: [sveltekit()], plugins: [sveltekit()],
test: { test: {
include: ['src/**/*.{test,spec}.{js,ts}'], include: ['src/**/*.{test,spec}.{js,ts}'],
exclude: ['src/playwright'] exclude: ['src/playwright']
} },
}); });