From ab5a21b73314e2d509213442a1e3cb39f4f76c35 Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Fri, 10 Jan 2025 03:51:39 +0200 Subject: [PATCH] fix(router-generator) use explicit routes export by default (#3109) Co-authored-by: Vladimir Panov --- .../router-generator/src/filesystem/virtual/getRouteNodes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router-generator/src/filesystem/virtual/getRouteNodes.ts b/packages/router-generator/src/filesystem/virtual/getRouteNodes.ts index b5fdba597e..4fa5ac2372 100644 --- a/packages/router-generator/src/filesystem/virtual/getRouteNodes.ts +++ b/packages/router-generator/src/filesystem/virtual/getRouteNodes.ts @@ -108,7 +108,7 @@ async function getVirtualRouteConfigFromFileExport( } const virtualRouteConfig = - 'default' in exports ? exports.default : exports.routes + 'routes' in exports ? exports.routes : exports.default return virtualRootRouteSchema.parse(virtualRouteConfig) }