You cant use D1 on vercel in that way. Vercel doesnt have cloudflare bindings. If you wanted to quer

You cant use D1 on vercel in that way. Vercel doesnt have cloudflare bindings. If you wanted to query D1 from Vercel you would need to either use the Rest API or create a worker to proxy requests to the D1 binding.
Was this page helpful?