Error: SQLITE_CANTOPEN: unable to open database file #161
-
I picked Vercel and I am trying to host node service which does slack messages on schedule (cron job). |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
If you're trying to read from your SQLite DB file, you'll need to explicitly include it in your function: https://vercel.com/support/articles/how-can-i-use-files-in-serverless-functions However, you won't be able to do full CRUD options (just read from the file). Instead, I would recommend checking out a managed MySQL provider: https://vercel.com/integrations/planetscale |
Beta Was this translation helpful? Give feedback.
If you're trying to read from your SQLite DB file, you'll need to explicitly include it in your function: https://vercel.com/support/articles/how-can-i-use-files-in-serverless-functions
However, you won't be able to do full CRUD options (just read from the file). Instead, I would recommend checking out a managed MySQL provider: https://vercel.com/integrations/planetscale