From e9dd2559445958c2fdcb4faa2d94bccac2f1f950 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Mon, 17 Apr 2023 23:27:16 +0200 Subject: [PATCH] fix: don't include prerendered routes in default generateManifest (#9471) fixes #9463 bug was introduced in #8740 --- .changeset/old-teachers-shout.md | 5 +++++ packages/kit/src/core/adapt/builder.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/old-teachers-shout.md diff --git a/.changeset/old-teachers-shout.md b/.changeset/old-teachers-shout.md new file mode 100644 index 000000000000..e7055bd5ce30 --- /dev/null +++ b/.changeset/old-teachers-shout.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: don't include prerendered routes in default generateManifest diff --git a/packages/kit/src/core/adapt/builder.js b/packages/kit/src/core/adapt/builder.js index 6176475b5b20..91ecf525f447 100644 --- a/packages/kit/src/core/adapt/builder.js +++ b/packages/kit/src/core/adapt/builder.js @@ -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) }); },