Using Deno Deploy with Drizzle and MySQL2
Hi! I was trying to deploy a nuxt project to deno deploy today. It uses mysql2 and drizzle for the database stuff. However, after deploying it, I got this error:
It seems like nuxt uses
Do I have it right? And if so, how can I fix it? I tried to set
It's a very simple nuxt project. Basically just
It seems like nuxt uses
unenv under-the-hood which tries to polyfill net.connect, but net.connect specifically isn't implemented yet. The issue presumably happens when mysql2 tries to connect to my db, because it uses this package under-the-hood.Do I have it right? And if so, how can I fix it? I tried to set
clientNodeCompat to false in the nuxt config without any success.It's a very simple nuxt project. Basically just
npx nuxi@latest init with drizzle added to it. I would make the github repo public, but I'm not that confident I haven't leaked some credential somewhere.