Home > @lynx-js/rspeedy > Server > proxy
Configure proxy rules for the dev server or preview server to proxy requests to the specified service.
Signature:
proxy?: ProxyConfig | undefined;
export default { server: { proxy: { // http://localhost:3000/api -> http://localhost:3000/api // http://localhost:3000/api/foo -> http://localhost:3000/api/foo '/api': 'http://localhost:3000', }, }, }