diff --git a/README.md b/README.md index a5ae371..30f958c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/index.ts b/src/index.ts index 4dc93dd..7c748de 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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