Skip to content

Commit

Permalink
fix: don't include prerendered routes in default generateManifest (#9471
Browse files Browse the repository at this point in the history
)

fixes #9463
bug was introduced in #8740
  • Loading branch information
dummdidumm authored Apr 17, 2023
1 parent 367067f commit e9dd255
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-teachers-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: don't include prerendered routes in default generateManifest
2 changes: 1 addition & 1 deletion packages/kit/src/core/adapt/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function create_builder({
relative_path: relativePath,
routes: subset
? subset.map((route) => /** @type {import('types').RouteData} */ (lookup.get(route)))
: route_data
: route_data.filter((route) => prerender_map.get(route.id) !== true)
});
},

Expand Down

0 comments on commit e9dd255

Please sign in to comment.