Skip to content

prisma.config.ts - slow formatting #28161

Closed

Description

@inhanbyeol94

Bug description

Since starting to use prisma.config.ts, it has been inconvenient that modifying and saving schema files takes over 10 seconds.

There are many models contained within 7 Prisma schema files.

The Prisma language server console output shows no specific logs, so I don't know how to improve this again.

This issue occurs regardless of whether using VS Code or WebStorm.

The prisma.config.ts file is not doing anything special:

import dotenv from 'dotenv';
import { PrismaConfig } from 'prisma';
import path from 'path';

dotenv.config();

export default {
  schema: path.join('prisma'),
  migrations: {
    path: path.join('prisma', 'migrations'),
    seed: 'ts-node -r tsconfig-paths/register --transpile-only prisma/seeds/core/execute.ts',
  },
  // views: {
  //   path: path.join('src', 'database', 'views'),
  // },
  // typedSql: {
  //   path: 'src/database/typed-sql',
  // },
} satisfies PrismaConfig;

Severity

🚨 Critical: Data loss, app crash, security issue

Reproduction

Expected vs. Actual Behavior

Frequency

Consistently reproducible

Does this occur in development or production?

Only in development (e.g., CLI tools, migrations, Prisma Studio)

Is this a regression?

Workaround

Prisma Schema & Queries

// Add relevant schema.prisma snippet
// Add relevant Prisma Client query

Prisma Config

// Add your `prisma.config.ts`

Logs & Debug Info

// Debug logs here

Environment & Setup

  • OS:
  • Database:
  • Node.js version:

Prisma Version

// Prisma version output

Activity

  1. inhanbyeol94 commented on Sep 25, 2025

    @inhanbyeol94
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions