You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{defineConfig}from'vite'importvuefrom'@vitejs/plugin-vue'exportdefaultdefineConfig({plugins: [vue()],server: {proxy: {'/frontend': 'http://example.com',// this made an 404 error when calling API, no error in terminal// below is OK'/frontend': {target: 'http://example.com'',changeOrigin: true}},}})
System Info
vite version: 2.0.0-beta.30
Operating System: Big sur
Node version: 15.6.0
Package manager (npm/yarn/pnpm) and version: npm
The text was updated successfully, but these errors were encountered:
Describe the bug
Proxy 404 when using string shorthand
Reproduction
System Info
vite
version:2.0.0-beta.30
Big sur
15.6.0
npm
The text was updated successfully, but these errors were encountered: