8000 refactor: re-export the handler by name (#804) · opennextjs/opennextjs-aws@86f4b44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86f4b44

Browse files
authored
refactor: re-export the handler by name (#804)
1 parent fbe09ae commit 86f4b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/open-next/src/build/createServerBundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ function addMonorepoEntrypoint(outputPath: string, packagePath: string) {
348348
const packagePosixPath = packagePath.split(path.sep).join(path.posix.sep);
349349
fs.writeFileSync(
350350
path.join(outputPath, "index.mjs"),
351-
`export * from "./${packagePosixPath}/index.mjs";`,
351+
`export { handler } from "./${packagePosixPath}/index.mjs";`,
352352
);
353353
}
354354

0 commit comments

Comments
 (0)
0