Skip to content

Commit 42e5263

Browse files
committed
fix: typo in router
1 parent 7d19e39 commit 42e5263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambda/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export async function handler(event, context, callback) {
2121
if (uri.slice(-1) === '/') {
2222
const shorturi = uri.substring(0, uri.length - 1)
2323

24-
if (static_default.includes(shorturi + '/index.html')) {
24+
if (staticFiles.includes(shorturi + '/index.html')) {
2525
callback(null, performReWrite(shorturi + '/index.html', request))
2626
return
2727
}
28-
if (static_default.includes(shorturi + '.html')) {
28+
if (staticFiles.includes(shorturi + '.html')) {
2929
callback(null, performReWrite(shorturi + '.html', request))
3030
return
3131
}

0 commit comments

Comments
 (0)