From e6112c8c93534b18a058ea6b7a7d1f4e3cdfeb28 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 22 Dec 2025 18:48:52 +0800 Subject: [PATCH] fix(workflow): ensure CACHE_TYPE is ignored in route generation --- scripts/workflow/build-routes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/workflow/build-routes.ts b/scripts/workflow/build-routes.ts index 840dc038ce..bcfa1ad2f5 100644 --- a/scripts/workflow/build-routes.ts +++ b/scripts/workflow/build-routes.ts @@ -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')}; `;