Applying drizzle migrations on Vercel with Hono
Hi, I'm trying to apply that migrations on the directory like this:
I'm using Nextjs, deployed on Vercel with a hono api. The path is /api/hono/tenants/create.
But every time I get this error:
Error: Can't find meta/_journal.json file
at /var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:42887
at qp (/var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:43323)
at /var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:44022
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async o (/var/task/.next/server/chunks/636.js:67:10412)
at async Function.P [as begin] (/var/task/.next/server/chunks/636.js:67:9981)
at async qf (/var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:43460)
I have tried absolute urls, relative, using path.join, etc.
Thanks for the help 😄
1 Reply
After some hours, I managed to solve it.
For anyone with the same issue, use the path module.
I also added this on the next.conf, Idk if it is necesary but xd
and