Skip to content

Commit ada5959

Browse files
authored
fix: default route config to {} for feature checking (#11685)
Co-authored-by: Rich Harris <[email protected]>
1 parent 5dae367 commit ada5959

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/smart-jeans-repeat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: default route config to `{}` for feature checking

packages/kit/src/core/postbuild/analyse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async function analyse({ manifest_path, manifest_data, server_manifest, tracked_
9797
}
9898
}
9999

100-
const route_config = page?.config ?? endpoint?.config;
100+
const route_config = page?.config ?? endpoint?.config ?? {};
101101
const prerender = page?.prerender ?? endpoint?.prerender;
102102

103103
if (prerender !== true) {

0 commit comments

Comments
 (0)