drizzle-orm/libsql 'file:' does not work with Next.js
I'm following https://orm.drizzle.team/docs/get-started-sqlite, but using e.g.
When using
When using
Both work fine when running a file via e.g.
drizzle('file:libsql.db') does not work with Next.js.When using
import { drizzle } from 'drizzle-orm/libsql', I get LibsqlError: URL_SCHEME_NOT_SUPPORTED: The client that uses Web standard APIs supports only "libsql:", "wss:", "ws:", "https:" and "http:" URLs, got "file:". For more information, please read https://github.com/libsql/libsql-client-ts#supported-urls.When using
import { drizzle } from 'drizzle-orm/libsql/node', I get Error: Neon: unsupported system: undefined.Both work fine when running a file via e.g.
tsx but not when running with next dev --turbopack.