Skip to content

Commit c57f6a3

Browse files
committed
do not include main.rs route when using bundle macro
1 parent 2376463 commit c57f6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async function buildHandler(
119119
debug(
120120
`experimental \`route-bundling\` detected - generating single entrypoint`,
121121
);
122-
const handlerFiles = await glob('api/**/*.rs', workPath);
122+
const handlerFiles = await glob('api/**/[!main]*.rs', workPath);
123123
const routes = generateRoutes(Object.keys(handlerFiles));
124124

125125
return {

0 commit comments

Comments
 (0)