Issues with NextJS + Turso + DrizzleORM + LuciaAuth
Hello! I am having issues. I recently have been using the planetscale related libs but since they are sunsetting their hobby tier I switched to turso. I changed all the schemas to match the correct types and whatnot.
This is where I connect to my db
Whenever I attempt to build with nextjs I get this entire build log:
7 Replies
I use to be able to build perfectly fine using planetscale/mysql2 drivers and everything
only when I switched to this am I now having errors relating to libsql
well it seems like nextjs is trying to compile readme files lol
so this is either a nextjs or libsql client issue - either something wrong with nextjs build system or libsql client provides incorrect export maybe i dunno
thats what it seemed to me too haha
im not sure what to do
i would check your nextjs(or webpack?) config first - maybe there is some setting to parse .md files(however your logs also indicate license files to be compiled) and it wasn't properly set up and this issue popped up now
if not - i would ask in nextjs repo/discord server first. seems more like their issue than libsql
this is my only webkacp config
Anyone?
Please 🥲
exclude the .md files from your nextJS build
something like this