Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Add WebSocket support to Next.js API routes

## Compatibility

- ✅ [Next.js 13](https://nextjs.org/blog/next-13)
- ✅ [The new `app` directory](https://beta.nextjs.org/docs/routing/fundamentals)
- ✅ [Next.js 13](https://nextjs.org/blog/next-13) (tested on v13.3.0)
- ✅ [The new `app` directory](https://beta.nextjs.org/docs/routing/fundamentals) (Can't use the new [Route Handlers](https://beta.nextjs.org/docs/routing/route-handlers))
- ✅ [Standalone output mode](https://nextjs.org/docs/advanced-features/output-file-tracing)

## Installation
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ function hookNextNodeServer(this: NextNodeServer) {
if (!isPageFound) return false;

// Ensure that the page gets built, if it exists
await this.ensureApiPage(page);
await this.ensureEdgeFunction({
page,
appPaths: null,
});

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