@sveltejs/kit 1.0.0-next.345 → 1.0.0-next.346

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.
@@ -1398,6 +1398,12 @@ function create_client({ target, session, base, trailing_slash }) {
1398
1398
  return new Promise(() => {});
1399
1399
  }
1400
1400
 
1401
+ if (import.meta.hot) {
1402
+ import.meta.hot.on('vite:beforeUpdate', () => {
1403
+ if (current.error) location.reload();
1404
+ });
1405
+ }
1406
+
1401
1407
  return {
1402
1408
  after_navigate: (fn) => {
1403
1409
  onMount(() => {
@@ -2231,10 +2231,7 @@ async function load_node({
2231
2231
  }
2232
2232
 
2233
2233
  response = await respond(
2234
- // we set `credentials` to `undefined` to workaround a bug in Cloudflare
2235
- // (https://github.com/sveltejs/kit/issues/3728) — which is fine, because
2236
- // we only need the headers
2237
- new Request(new URL(requested, event.url).href, { ...opts, credentials: undefined }),
2234
+ new Request(new URL(requested, event.url).href, { ...opts }),
2238
2235
  options,
2239
2236
  {
2240
2237
  ...state,