Vite config
vite.config.js
set build output dir
import { defineConfig } from 'vite';
export default defineConfig({
build: {
outDir: 'dist'
}
});
set proxy backend api
import { defineConfig } from 'vite';
export default defineConfig({
server: {
proxy: {
'/api': 'https://q.zzmm.site'
}
}
});
创建时间:3/23/2023 5:08:49 PM
修改时间:3/24/2023 10:41:22 AM