22 lines
No EOL
577 B
TypeScript
22 lines
No EOL
577 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit()],
|
|
server: {
|
|
port: 3000,
|
|
host: true,
|
|
proxy: {
|
|
// Proxy uploads to openresty for dev mode
|
|
'/uploads': {
|
|
target: 'http://localhost:80',
|
|
changeOrigin: true
|
|
},
|
|
// Proxy thumbnails to openresty
|
|
'/thumb': {
|
|
target: 'http://localhost:80',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
}); |