Files
runbin/web/vite.config.js
lhx-666-cool f6cb277519 add web
2025-04-25 17:03:25 +08:00

30 lines
528 B
JavaScript

import {
defineConfig
} from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
tailwindcss(),
],
resolve: {
alias: {
events: 'events/',
},
},
server: {
host: '0.0.0.0',
proxy: {
'/bc': {
target: 'https://fuhncvpxdcuf.ap-northeast-1.clawcloudrun.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/bc/, ''),
},
},
}
})