Does Workers upload my whole project directory?
I have a hono project using drizzle. I'm using neondb not d1. This snippet below doesn't work:
I always get the error
Error: Can't find meta/_journal.json file
and my suspicion is because that this directory ./src/db/migrations/
doesn't exist in runtime. And if I'm correct, how do I refer to directories then? I need those migration files to run via an endpoint2 Replies
Yeah you won't be able to do migrations at runtime likely, that also sounds quite bad for perf.
Any reason to not do this before you upload?
I'm creating a new neondb project per tenant for my application. With their newly created project, I have to run the migration against their project to create the tables. As for perf, it's just a one time thing and there's really no workaround to what I'm doing: spinning up new databases per new tenant.