Add proxy to backend to vite config

This commit is contained in:
Jan Bader 2022-01-21 14:20:58 +00:00
parent ddab5998bc
commit bc78cab715

View File

@ -5,6 +5,12 @@ import vue from '@vitejs/plugin-vue'
export default defineConfig({ export default defineConfig({
plugins: [vue()], plugins: [vue()],
server: { server: {
host: '0.0.0.0' host: '0.0.0.0',
proxy: {
'/api': {
target: 'http://10.0.0.162:1323/',
changeOrigin: true
}
}
} }
}) })