fix(workflow): ensure CACHE_TYPE is ignored in route generation

This commit is contained in:
DIYgod
2025-12-22 18:48:52 +08:00
parent 2822c5902a
commit e6112c8c93

View File

@@ -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')};
`;