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:

migrate(
  db,
  {
    migrationsFolder: './src/db/migrations/'
  }
)


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 endpoint
Was this page helpful?