mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-03-13 10:30:18 +08:00
fix(workflow): ensure CACHE_TYPE is ignored in route generation
This commit is contained in:
@@ -11,6 +11,7 @@ const __dirname = getCurrentPath(import.meta.url);
|
||||
|
||||
// Ignore Redis and remote config in route generation to avoid side effects.
|
||||
process.env.REDIS_URL = '';
|
||||
process.env.CACHE_TYPE = '';
|
||||
process.env.REMOTE_CONFIG = '';
|
||||
|
||||
const [{ config }, { namespaces }] = await Promise.all([import('../../lib/config'), import('../../lib/registry')]);
|
||||
@@ -119,7 +120,7 @@ const uniquePaths = [...allRoutePaths].toSorted();
|
||||
const routePathsType = `// This file is auto-generated by scripts/workflow/build-routes.ts
|
||||
// Do not edit manually
|
||||
|
||||
export type RoutePath =
|
||||
export type RoutePath =
|
||||
${uniquePaths.map((path) => ` | \`${path}\``).join('\n')};
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user