Skip to content

Commit d268aeb

Browse files
committed
fix
1 parent e813862 commit d268aeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const getFileContent = (fullUrl: string): Promise<string> => {
2121
if (!pathname.trim()) {
2222
pathname = 'index.html';
2323
}
24-
let filePath = path.resolve(appDir, pathname);
24+
const filePath = path.resolve(appDir, pathname);
2525
return fs.promises
2626
.readFile(filePath, 'utf8')
2727
.catch(() => fs.promises.readFile(path.resolve(appDir, '404.html'), 'utf8'));

0 commit comments

Comments
 (0)