I'm having a hard time understanding what the best practice is when it comes to implementing the cloudflare stack with a react app.
So currently I have a vite react app and the app is in /src
I have wrangler.jsonc in the root. I want to make functions that use D1. At first I saw you just make /functions and put the files in there. Seems good to me but I don't see where you configure D1 there without mixing it with the react app. I've also seen the /workers directory used too. Not sure which one to use or where to put D1 / drizzle config stuff.