mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-15 10:15:23 +08:00
app: fix HEROKU_SLUG_COMMIT not exist
This commit is contained in:
@@ -9,7 +9,7 @@ let gitHash;
|
||||
try {
|
||||
gitHash = require('git-rev-sync').short();
|
||||
} catch (e) {
|
||||
gitHash = process.env.HEROKU_SLUG_COMMIT.slice(0, 7) || 'unknown';
|
||||
gitHash = (process.env.HEROKU_SLUG_COMMIT && process.env.HEROKU_SLUG_COMMIT.slice(0, 7)) || 'unknown';
|
||||
}
|
||||
const startTime = +new Date();
|
||||
router.get('/', async (ctx) => {
|
||||
|
||||
Reference in New Issue
Block a user