1234567891011121314151617 |
- import { defineConfig } from 'vite';
- import vue from '@vitejs/plugin-vue';
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [vue()],
- server: {
- proxy: {
- // with options
- '/track_api': {
- target: 'https://v4-test.4dkankan.com/',
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/track_api/, ''),
- },
- },
- },
- });
|