Files
z449/vite.config.js

23 lines
562 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
base: './',
server: {
port: 5174,
// 开发时把站点根的静态资源448 游戏/截图、449 排行榜接口)代理到本地 8080
// 与 mainPage 同款配置;生产由 Apache 静态/PHP 服务。
proxy: {
'/448': {
target: 'http://localhost:8080',
changeOrigin: true
},
'/449': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
}
})