Skip to content

Commit

Permalink
fix: withUnkey should not fail build (@unkey/nextjs) (#2651)
Browse files Browse the repository at this point in the history
* chore:withUnkey should not fail build (@unkey/nextjs)

* chore: release

---------

Co-authored-by: chronark <dev@chronark.com>
  • Loading branch information
harshsbhat and chronark authored Nov 13, 2024
1 parent 0baaa06 commit 77ca701
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/little-melons-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@unkey/nextjs": minor
---

upgrade types to match nextjs 15
2 changes: 1 addition & 1 deletion packages/nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type WithUnkeyConfig = {
type VerifyResponse = Awaited<ReturnType<InstanceType<typeof Unkey>["keys"]["verify"]>>;
export type UnkeyContext = VerifyResponse["result"];

export type NextContext = { params: Record<string, string | string[]> };
export type NextContext = { params: Promise<Record<string, string | string[]>> };

export type NextRequestWithUnkeyContext = NextRequest & { unkey: UnkeyContext };

Expand Down

0 comments on commit 77ca701

Please sign in to comment.