Skip to content

Commit 4008d88

Browse files
committed
comments
1 parent ed5aa9e commit 4008d88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/proxy/proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ function toBackend(req, res) {
125125
}
126126

127127
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
128130
const originalUrl = req.url;
129131
const strippedUrl = originalUrl.replace(/^\/assets\/bundle/, '') || '/';
130132

131-
console.log(`[Proxy] → esbuild: ${originalUrl}${strippedUrl}`);
132-
133133
req.url = strippedUrl;
134134
proxy.web(req, res, { target: `http://127.0.0.1:${PORT + 2}` });
135135
}

0 commit comments

Comments
 (0)