@solidjs/start 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/server-handler.ts +5 -1
- package/package.json +1 -1
package/config/server-handler.ts
CHANGED
|
@@ -190,7 +190,11 @@ async function handleSingleFlight(sourceEvent: FetchEvent, result: any) {
|
|
|
190
190
|
if (result instanceof Response) {
|
|
191
191
|
if (result.headers.has("X-Revalidate"))
|
|
192
192
|
revalidate = result.headers.get("X-Revalidate").split(",");
|
|
193
|
-
if (result.headers.has("Location"))
|
|
193
|
+
if (result.headers.has("Location"))
|
|
194
|
+
url = new URL(
|
|
195
|
+
result.headers.get("Location"),
|
|
196
|
+
new URL(sourceEvent.request.url).origin + import.meta.env.SERVER_BASE_URL
|
|
197
|
+
).toString();
|
|
194
198
|
}
|
|
195
199
|
const event = cloneEvent(sourceEvent) as PageEvent;
|
|
196
200
|
event.request = new Request(url);
|