Skip to content

Commit 49a4f32

Browse files
authored
[fix] make options object optional (#7341)
fixes #7340
1 parent 3edb240 commit 49a4f32

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-static': patch
3+
---
4+
5+
Make options object optional

packages/adapter-static/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function (options) {
2424
};
2525
});
2626

27-
if (dynamic_routes.length > 0 && options.strict) {
27+
if (dynamic_routes.length > 0 && options?.strict !== false) {
2828
const prefix = path.relative('.', builder.config.kit.files.routes);
2929
const has_param_routes = dynamic_routes.some((route) => route.includes('['));
3030
const config_option =

0 commit comments

Comments
 (0)