radames's picture
fix for codespaces
a36b43a
raw
history blame contribute delete
388 Bytes
import { sveltekit } from '@sveltejs/kit/vite';
import type { UserConfig } from 'vite';
const config: UserConfig = {
plugins: [sveltekit()],
server: {
host: "0.0.0.0",
proxy: {
'/server': {
target: 'http://0.0.0.0:7860',
changeOrigin: true,
cookieDomainRewrite: 'localhost',
rewrite: (path) => path.replace(/^\/server/, '')
}
}
}
};
export default config;