;
+};
+
+const debug: DebugInfo = {
hitCache: 0,
request: 0,
etag: 0,
error: 0,
+ routes: {},
+ paths: {},
+ errorRoutes: {},
+ errorPaths: {},
};
export const getDebugInfo = () => debug;
diff --git a/lib/utils/git-hash.ts b/lib/utils/git-hash.ts
index 60d2b4b3b..6c6060006 100644
--- a/lib/utils/git-hash.ts
+++ b/lib/utils/git-hash.ts
@@ -1,7 +1,7 @@
import gitRevSync from 'git-rev-sync';
let gitHash = process.env.HEROKU_SLUG_COMMIT?.slice(0, 8) || process.env.VERCEL_GIT_COMMIT_SHA?.slice(0, 8);
-let gitDate;
+let gitDate: Date | undefined;
if (!gitHash) {
try {
gitHash = gitRevSync.short(undefined, 8);
diff --git a/lib/views/error.art b/lib/views/error.art
index e128d63fc..3a98d2d86 100644
--- a/lib/views/error.art
+++ b/lib/views/error.art
@@ -41,13 +41,13 @@
Looks like something went wrong
- Route requested: {{@ requestPath }}
+ Path requested: {{@ requestPath }}
Error message: {{@ message }}
Helpful Information to provide when opening issue:
-Path: {{@ errorPath }}
-Node version: {{@ nodeVersion}}
-Git Hash: {{@ gitHash}}
+Route: {{@ errorRoute }}
+Node version: {{@ nodeVersion }}
+Git Hash: {{@ gitHash }}
If you believe this is an error caused by RSSHub, please report on github
diff --git a/lib/views/index.tsx b/lib/views/index.tsx
index 2de58d71d..1a04ab81a 100644
--- a/lib/views/index.tsx
+++ b/lib/views/index.tsx
@@ -11,6 +11,19 @@ const Layout: FC = (props) => (
Welcome to RSSHub!
+
{props.children}