Skip to content

Commit

Permalink
not sure how that snuck in there
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Mar 16, 2022
1 parent a46fd72 commit a7dfbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function respond(request, options, state) {
/** @type {Record<string, string>} */
let params = {};

if (options.paths.base) {
if (options.paths.base && !state.prerender?.fallback) {
if (!decoded.startsWith(options.paths.base)) {
return new Response(undefined, { status: 404 });
}
Expand Down

0 comments on commit a7dfbb2

Please sign in to comment.