We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5aa9e commit 4008d88Copy full SHA for 4008d88
tools/proxy/proxy.js
@@ -125,11 +125,11 @@ function toBackend(req, res) {
125
}
126
127
function toWebpackDev(req, res) {
128
+ // Remove the assets/bundle prefix from the URL
129
+ // EsBuild dev server expects all files from it's root directory, i.e. public/bundle
130
const originalUrl = req.url;
131
const strippedUrl = originalUrl.replace(/^\/assets\/bundle/, '') || '/';
132
- console.log(`[Proxy] → esbuild: ${originalUrl} → ${strippedUrl}`);
-
133
req.url = strippedUrl;
134
proxy.web(req, res, { target: `http://127.0.0.1:${PORT + 2}` });
135
0 commit comments