𝗣𝗿𝗶𝘀𝗺𝗮 𝟳: 𝗙𝗶𝘅 𝘁𝗵𝗲 𝗗𝗮𝘁𝗮𝘀𝗼𝘂𝗿𝗰𝗲 𝗨𝗥𝗟 𝗘𝗿𝗿𝗼𝗿

Did you see an error during prisma migrate dev? Prisma no longer supports the url property in schema files.

The database URL now belongs in a new file.

Follow these steps to fix it:

import 'dotenv/config' import { defineConfig } from 'prisma/config'

export default defineConfig({ datasource: { url: process.env.DATABASE_URL!, }, })

Your database URL now lives in the config file.

Source: https://dev.to/joodi/prisma-7-the-datasource-property-url-is-no-longer-supported-heres-the-fix-1178