Skip to content

Commit

Permalink
Adds migration guide for using updated next.js handler function
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30-st committed Oct 7, 2024
1 parent 8deff18 commit 75c4e28
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,25 @@ SuperTokens.init({
});
```

#### Using updated `getAppDirRequestHandler` for next.js

Before:

```ts
import { getAppDirRequestHandler } from "supertokens-node/nextjs";
import { NextResponse } from "next/server";

const handleCall = getAppDirRequestHandler(NextResponse);
```

After:

```ts
import { getAppDirRequestHandler } from "supertokens-node/nextjs";

const handleCall = getAppDirRequestHandler();
```

## [20.1.3] - 2024-09-30

- Replaces `psl` with `tldts` to avoid `punycode` deprecation warning.
Expand Down

0 comments on commit 75c4e28

Please sign in to comment.