chore: recover format

This commit is contained in:
DIYgod
2024-01-29 23:28:03 +08:00
parent 6333562fe5
commit 493cdc19ba
8 changed files with 229 additions and 23 deletions
+10 -10
View File
@@ -1,16 +1,16 @@
import { serve } from '@hono/node-server'
import logger from '@/utils/logger'
import { config } from '@/config'
import app from '@/app'
import { serve } from '@hono/node-server';
import logger from '@/utils/logger';
import { config } from '@/config';
import app from '@/app';
const port = config.connect.port
const port = config.connect.port;
logger.info(`🎉 RSSHub is running on port ${port}! Cheers!`)
logger.info(`🎉 RSSHub is running on port ${port}! Cheers!`);
logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/support');
serve({
fetch: app.fetch,
port
})
fetch: app.fetch,
port,
});
export default app
export { default } from '@/app';
+1 -1
View File
@@ -1,6 +1,6 @@
import gitRevSync from 'git-rev-sync';
let gitHash = process.env.HEROKU_SLUG_COMMIT?.slice(0, 7) || process.env.VERCEL_GIT_COMMIT_SHA?.slice(0, 7)
let gitHash = process.env.HEROKU_SLUG_COMMIT?.slice(0, 7) || process.env.VERCEL_GIT_COMMIT_SHA?.slice(0, 7);
if (!gitHash) {
try {
gitHash = gitRevSync.short();