Can't use SQLIte in Nextjs
I have tried everything I can find on setting up Prisma ORM with a SQLite db. I use this to create basic Prisma artifacts, direct from the docs:
Then I add only the model to this to the generated
Even my
and the generated
Yet when I run
Then I add only the model to this to the generated
prisma\schema.prisma:Even my
.env is purely generated, with:and the generated
prisma.config.ts at root contains this:Yet when I run
npx prisma migrate deploy, I get told Loaded Prisma config from prisma.config.ts.I haven't included debug and logging as these seem to apply to Prisma Client, which I haven't even got to creating yet. The only change I've made to what the CLI
Loaded Prisma config from prisma.config.ts.
Prisma schema loaded from prisma\schema.prisma.
Datasource "db": SQLite database
Error: P1013: The provided database string is invalid. The scheme is not recognized in database URL. Please refer to the documentation in https://pris.ly/d/config-url for constructing a correct connection string.
prisma init generates is the Post model.This page gives an overview of all Prisma config options available for use.