Closed andrienpecson closed 1 year ago
Hi @andrienpecson, thanks for raising this.
This error seems to be a matter of compatibility of the Redis library you're using with the Edge runtime. Not sure this is a SDK issue.
Yep - ioredis
requires the Node.js runtime (see also https://github.com/luin/ioredis/issues/769#issuecomment-1480869051)
@Widcket @adamjmcgrath Thank You for the reply, but is there any recommended library I can use for this matter?
@andrienpecson - I used @upstash/redis
when I was testing it in https://github.com/adamjmcgrath/nextjs-auth0-redis-session
Any storage client that works on Vercel's Edge runtime will work.
I am seeing this error running locally on my laptop.
Checklist
Description
I am currently implementing a custom SessionStore to bypass the large cookie issue. In the
auth0.ts
, I am usingioredis
as the Redis library. The problem is that I am encountering an issue when NextJs is generating the pages.Reproduction
auth0.ts
auth0Config
middleware.ts
Issue
Additional context
No response
nextjs-auth0 version
2.4.0
Next.js version
13
Node.js version
16.16.0