Skip to content

Commit 29e5534

Browse files
committed
Quick workaround for new proxy
1 parent 0cf5397 commit 29e5534

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/helpers.js

+5
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ function normalizeHeaders(event) {
169169

170170
function baseUrl(event) {
171171
event = normalizeHeaders(event);
172+
173+
// For use with the local https-proxy in dev mode
174+
if (event.headers["x-forwarded-base"])
175+
return event.headers["x-forwarded-base"];
176+
172177
const scheme = event.headers["x-forwarded-proto"];
173178

174179
// The localhost check only matters in dev mode, but it's

0 commit comments

Comments
 (0)