← Back to Changelog

Prisma ORM v6.18.0: prisma init now creates prisma.config.ts

v6.18.0
October 22, 2025
Prisma ORMPrisma Postgres

Prisma ORM v6.18.0: prisma init now creates a prisma.config.ts

When creating a new project with 6.18.0, prisma init will now create a prisma.config.ts file automatically. This prepares new applications for the future of Prisma 7. Some fields that have been historically set in the schema.prisma file are now available in the prisma.config.ts, and we encourage people to migrate over to the new structure before the release of version 7, where this file will become a requirement.

Support for defining your datasource in prisma.config.ts

If you’re adopting the new prisma.config.ts setup in your projects, version 6.18.0 brings the ability to set your datasource directly in your config file. Once this is in your config file, any datasource set in your schema.prisma will be ignored. To set the datasource, we also must include the new engine key which we can set to "classic", which will be required for Prisma v7

import { defineConfig, env } from "prisma/config";
export default defineConfig({
  // The Rust-compiled schema engine 
  engine: "classic",
  datasource: {
       url: env('DATABASE_URL'),
  }
});
  • #28291 Support multiple Prisma instances with different providers
  • #28305 Add env helper function
  • #28266 Add support for js or classic as engine types in prisma.config
  • #28139 Map Bytes to Uint8Array depending on Typescript version

Database Metric in Console

Inside your database console, you can now view metrics on your database usage and interactions. You can get insights into the following:

  • Total egress
  • Average response size
  • Average query duration

In addition, you can also get insights into how to improve your query caching and gain better performance.

Open roles at Prisma

Interested in joining Prisma? We’re growing and have several exciting opportunities across the company for developers who are passionate about building with Prisma. Explore our open positions on our Careers page and find the role that’s right for you.

Enterprise support

Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.

With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.