We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141b0f9 commit fdae48fCopy full SHA for fdae48f
.changeset/four-llamas-join.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/adapter-static': patch
3
4
+
5
+fix: allow dynamic routes with missing fallback in hash mode
packages/adapter-static/index.js
@@ -7,7 +7,7 @@ export default function (options) {
7
name: '@sveltejs/adapter-static',
8
9
async adapt(builder) {
10
- if (!options?.fallback) {
+ if (!options?.fallback && builder.config.kit.router.type !== 'hash') {
11
const dynamic_routes = builder.routes.filter((route) => route.prerender !== true);
12
if (dynamic_routes.length > 0 && options?.strict !== false) {
13
const prefix = path.relative('.', builder.config.kit.files.routes);
0 commit comments