Files
linux-odyssey/app/vite.config.js
T
2023-08-17 19:43:55 +08:00

16 lines
296 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
'/api': {
target: 'http://localhost:3000', // the server url
ws: true,
},
},
},
})