Skip to content

Commit

Permalink
fix: fix not found error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 29, 2023
1 parent fc5098c commit d03ff02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils/notFound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async (res: IServerResponse, resource: string, message: string =
message,
}, { filename });
} else {
html = await ejs.render(html, { title: message, projectName, nav, date: [], message, }, { filename });
html = await ejs.render(html, { title: message, projectName, nav, date: [], message, version: pgk.version }, { filename });
}
} catch (error) {
console.log(error.message);
Expand Down

0 comments on commit d03ff02

Please sign in to comment.