mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-03-13 10:30:18 +08:00
fix(workflow): ignore redis and remote config in build-routes
This commit is contained in:
@@ -4,13 +4,17 @@ import path from 'node:path';
|
||||
import { parse } from 'tldts';
|
||||
import toSource from 'tosource';
|
||||
|
||||
import { config } from '../../lib/config';
|
||||
import { namespaces } from '../../lib/registry';
|
||||
import type { RadarItem } from '../../lib/types';
|
||||
import { getCurrentPath } from '../../lib/utils/helpers';
|
||||
|
||||
const __dirname = getCurrentPath(import.meta.url);
|
||||
|
||||
// Ignore Redis and remote config in route generation to avoid side effects.
|
||||
process.env.REDIS_URL = '';
|
||||
process.env.REMOTE_CONFIG = '';
|
||||
|
||||
const [{ config }, { namespaces }] = await Promise.all([import('../../lib/config'), import('../../lib/registry')]);
|
||||
|
||||
type FoloAnalysis = Record<string, { subscriptionCount: number; topFeeds: any[] }>;
|
||||
|
||||
const loadFoloAnalysis = async (): Promise<FoloAnalysis> => {
|
||||
|
||||
Reference in New Issue
Block a user