Skip to content

Commit 1386216

Browse files
committed
fix(routing): fix route loader when build directory is not build but dist
1 parent de3e1d0 commit 1386216

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/bootstrap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export async function bootstrap<
100100
name,
101101
rootDirectory,
102102
service: absoluteEntrypoint,
103+
codepath,
103104
});
104105
}
105106

src/express-app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export async function startApp<
264264
await loadRoutes(
265265
app,
266266
path.resolve(rootDirectory, codepath, config.get<string>('routing:routes') || 'routes'),
267-
codepath === 'build' ? '**/*.js' : '**/*.ts',
267+
codepath === 'src' ? '**/*.ts' : '**/*.js',
268268
);
269269
}
270270
if (routing?.openapi) {

0 commit comments

Comments
 (0)