danbooru-viewer/vite.config.ts
defaultkavy 5605aa94d2
v0.6.0
new: post favorite.
new: User.favorites Map.
new: ClientUser.init(), fetch client user fav data on start up.
2024-10-11 23:05:28 +08:00

14 lines
331 B
TypeScript

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