weird behavior with nextjs appdir experimental cache
I'm trying to use drizzle with planetscale's database-js inside of an unstable_cache (to leverage the tag caching system).
pretty simple stuff, but because database-js is based on the fetch api, it breaks when inside of the unstable_cache.
I tried changing the fetch in database-js to use undici's fetch, which fixed the problem, but that doesnt support edge runtime sadly. Anyone any ideas?
1 Reply
I have the same problem
@Merlin did you find any solutions?
I'm trying to do some incremental static regeneration by caching my database calls using drizzle orm same like you