proxy.conf.js (364B)
1 const PROXY_CONFIG = { 2 "/api": { 3 target: "http://localhost:4200", 4 secure: false, 5 //changeOrigin: true, 6 logLevel: "debug", 7 bypass: function (req, res, proxyOptions) { 8 console.log(`[Proxy] ${req.method} ${req.url}`); 9 // Don't bypass - let all /api requests go through 10 return null; 11 } 12 } 13 }; 14 15 module.exports = PROXY_CONFIG;