vite-plugin-proxy
what
devServer.proxy
is forwebpack-dev-server
,vite-plugin-proxy
is forvite
it's a
vite
plugin that proxies your requests
usage
also see /example dir
npm install vite-plugin-proxy --save-dev# or yarn add -D vite-plugin-proxy
// vite.config.js # or vite.config.tsconst proxyPlugin = moduleexports = plugins:
credit
mostly shamelessly stolen from https://github.com/sunyongjian/koa2-proxy-middleware