Skip to content

Commit

Permalink
fix: getAppDirRequestHandler export
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 6, 2023
1 parent fbcf434 commit c8d3d03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/build/nextjs.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions lib/build/nextjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/ts/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class NextJS {
});
}

static async getAppDirRequestHandler<T extends PartialNextRequest>(NextResponse: typeof Response) {
static getAppDirRequestHandler<T extends PartialNextRequest>(NextResponse: typeof Response) {
const stMiddleware = middleware<T>((req) => {
const query = Object.fromEntries(new URL(req.url).searchParams.entries());
const cookies: Record<string, string> = Object.fromEntries(
Expand Down Expand Up @@ -129,3 +129,4 @@ export default class NextJS {
}
}
export let superTokensNextWrapper = NextJS.superTokensNextWrapper;
export let getAppDirRequestHandler = NextJS.getAppDirRequestHandler;

0 comments on commit c8d3d03

Please sign in to comment.