Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit a689e2f

Browse files
committed
Changed out ensurePage and to just use ensureEdgeFunction
Changed ensurePage to use ensureEdgeFunction Change it to just ensureEdgeFunction
1 parent 0bfc6d9 commit a689e2f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ function hookNextNodeServer(this: NextNodeServer) {
7878
if (!isPageFound) return false;
7979

8080
// Ensure that the page gets built, if it exists
81-
if (this.ensureApiPage) {
82-
await this.ensureApiPage(page);
83-
} else {
84-
await this.ensurePage({ page, clientOnly: false });
85-
}
81+
await this.ensureEdgeFunction({
82+
page,
83+
appPaths: null,
84+
});
8685

8786
// Get the path of the built page. Will throw an error if the page doesn't
8887
// exist. This is fine to ignore, as it just falls into one of the many

0 commit comments

Comments
 (0)