From fcc3baf4864aa7ecca5a85bd0481fd34674ec1a6 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 3 Jun 2024 21:25:07 -0400 Subject: [PATCH] Use fully qualified URL in source map urls This lets Firefox find them relatively to node: URLs --- fixtures/flight/src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fixtures/flight/src/index.js b/fixtures/flight/src/index.js index f5b3e7406b3480..b4b538a3a9992f 100644 --- a/fixtures/flight/src/index.js +++ b/fixtures/flight/src/index.js @@ -40,7 +40,11 @@ async function hydrateApp() { { callServer, findSourceMapURL(fileName) { - return '/source-maps?name=' + encodeURIComponent(fileName); + return ( + document.location.origin + + '/source-maps?name=' + + encodeURIComponent(fileName) + ); }, } );