Skip to content

Commit a47ecc0

Browse files
authored
allow routes to have the same name as fallback components - fixes #4186 (#4284)
1 parent 2e2f0af commit a47ecc0

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/long-guests-trade.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
Allow routes with the same name as fallback components

packages/kit/src/core/build/build_server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export async function build_server(
160160
const relative = path.relative(config.kit.files.routes, resolved);
161161

162162
const name = relative.startsWith('..')
163-
? posixify(path.join('entries/pages', path.basename(file)))
163+
? posixify(path.join('entries/fallbacks', path.basename(file)))
164164
: posixify(path.join('entries/pages', relative));
165165
input[name] = resolved;
166166
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- https://github.com/sveltejs/kit/issues/4186 -->

0 commit comments

Comments
 (0)