@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.
@@ -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")) url = result.headers.get("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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "author": "Ryan Carniato",
6
6
  "publishConfig": {