Content pfp
Content
@
0 reply
0 recast
2 reactions

Andrea Falcon pfp
Andrea Falcon
@falc
I'm trying to use Viem with NextJS 13.4 on a new project but I have problems with CORS when I use `readContract`. Anyone have the same problem? Thanks
2 replies
0 recast
0 reaction

Joe Blau 🎩 pfp
Joe Blau 🎩
@joeblau
Have you tried using wagmi? It wraps viem in really clean hooks. https://wagmi.sh/
1 reply
0 recast
0 reaction

Yash Karthik pfp
Yash Karthik
@yashkarthik
haven't used viem with next, but have you looked at the cors middleware for nextjs https://nextjs.org/docs/pages/building-your-application/routing/api-routes#caveats
1 reply
0 recast
0 reaction