File size: 569 Bytes
142f91b
 
 
 
 
 
66ed450
142f91b
 
 
 
 
 
809d458
 
 
 
 
 
142f91b
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { sveltekit } from '@sveltejs/kit/vite';
import type { UserConfig } from 'vite';

const config: UserConfig = {
	plugins: [sveltekit()],
	server: {
		// host: "0.0.0.0",
		proxy: {
			'/moon': {
				target: 'https://huggingface.co',
				changeOrigin: true,
				cookieDomainRewrite: 'localhost',
				rewrite: (path) => path.replace(/^\/moon/, '')
			},
			'/uploads': {
				target: 'https://s3.amazonaws.com',
				changeOrigin: true,
				cookieDomainRewrite: 'localhost',
				rewrite: (path) => path.replace(/^\/uploads/, '')
			}
		}
	}
};
export default config;