Skip to content

Commit

Permalink
fix: next-auth adapter app router safety (#1617)
Browse files Browse the repository at this point in the history
* fix: append use client to siwe-next-auth provider for app router

* chore: changeset
  • Loading branch information
DanielSinclair committed Nov 20, 2023
1 parent cb56848 commit 2f56ab2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-kings-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit-siwe-next-auth": patch
---

Adopted `'use client'` directive for safe App Router usage
3 changes: 3 additions & 0 deletions packages/rainbowkit-siwe-next-auth/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const isWatching = process.argv.includes('--watch');

esbuild
.build({
banner: {
js: '"use client";', // Required for Next 13 App Router
},
bundle: true,
entryPoints: ['src/index.ts'],
format: 'esm',
Expand Down

2 comments on commit 2f56ab2

@vercel
Copy link

@vercel vercel bot commented on 2f56ab2 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2f56ab2 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.