mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 14:23:07 +00:00
add web
This commit is contained in:
29
web/vite.config.js
Normal file
29
web/vite.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
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/, ''),
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user