Skip to content

Commit

Permalink
fix: default route config to {} for feature checking (#11685)
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Harris <rich.harris@vercel.com>
  • Loading branch information
Rich-Harris and Rich-Harris committed Jan 19, 2024
1 parent 5dae367 commit ada5959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smart-jeans-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: default route config to `{}` for feature checking
2 changes: 1 addition & 1 deletion packages/kit/src/core/postbuild/analyse.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function analyse({ manifest_path, manifest_data, server_manifest, tracked_
}
}

const route_config = page?.config ?? endpoint?.config;
const route_config = page?.config ?? endpoint?.config ?? {};
const prerender = page?.prerender ?? endpoint?.prerender;

if (prerender !== true) {
Expand Down

0 comments on commit ada5959

Please sign in to comment.