ERROR 500. SvelteKit + Drizzle + better-sqlite
Hi
Deployed site:
https://drizzle-test-test-test-hahaha.vercel.app
Source code:
https://github.com/babakfp/drizzle-test-test-test-hahaha
ERROR MESSAGE:
Do I need to do something to get it working?
Works with no problem on local
GitHub
GitHub - babakfp/drizzle-test-test-test-hahaha
Contribute to babakfp/drizzle-test-test-test-hahaha development by creating an account on GitHub.
2 Replies
that error means the database location is not created. so if you used a path like
/data/users.sqlite
& the path /data
is not created on vercel then it will fail with this error
ask the next.js guys where should you put sqlite path on vercel & if there's a place to put database files that are persisted on vercel.
if you search vercel sqlite
, you get good results https://www.google.com/search?q=vercel+sqliteit says sqlite is not supported with vercel. makes sense as vercel pushes serverless down your throat https://vercel.com/guides/is-sqlite-supported-in-vercel
Is SQLite supported in Vercel?
Information about whether SQLite is supported in a serverless environment like Vercel.