fix(workflow): ignore redis and remote config in build-routes
This commit is contained in:
parent
3f42a429ee
commit
2822c5902a
|
|
@ -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> => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue