danbooru-viewer/vite.config.ts
defaultkavy 93b06d7c80
v0.8.0
new: touch or pen gesture open/close $Drawer.
optimize: move numberFormat function to Util.
new: video controller.
optimize: $PostTile video duration update by timeupdate event.
change: post viewer height depend on dynamic viewport height.
2024-10-15 13:27:36 +08:00

17 lines
386 B
TypeScript

import { defineConfig } from 'vite';
export default defineConfig({
server: {
proxy: {
'/api': {
target: 'http://localhost:3030',
changeOrigin: true
},
},
watch: {
usePolling: true
}
},
define: {
__APP_VERSION__: JSON.stringify(process.env.npm_package_version)
}
})