git clone https://github.com/zianwar/sveltekit-tailwindcss-prisma-starter myapp
cd myapp
pnpm icp .env.example .envUse PlanetScale (MySQL)
- schema.prisma is already configured to use this method, to keep it, create a database on PlanetScale and copy the credentials into local
.envfile.
-
Local
.envshould already be using MySQL file. -
Update Prisma schema.prisma to use SQLite:
datasource db { - provider = "sqlite" + provider = "mysql" url = env("DATABASE_URL") + relationMode = "prisma" } -
Create database and generate Prisma client
npx prisma db push


