xiaoshuo / ui-src /vite.config.ts
xiaoshuo-ui
New novel-editor UI (frontend only; APIs, storage and auth untouched)
3d4293e
Raw History Blame Contribute Delete
441 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
base: '/',
build: { outDir: 'dist', assetsDir: 'assets', emptyOutDir: true, chunkSizeWarningLimit: 1200 },
server: { proxy: { '/api': { target: 'https://ethscriptions-xiaoshuo.hf.space', changeOrigin: true }, '/fanqie/api': { target: 'https://ethscriptions-xiaoshuo.hf.space', changeOrigin: true } } },
})