Skip to content

feat(be): add dotenv dependency and configure prisma settings#3450

Open
Choi-Jung-Hyeon wants to merge 2 commits intomainfrom
t2596-prisma7-url
Open

feat(be): add dotenv dependency and configure prisma settings#3450
Choi-Jung-Hyeon wants to merge 2 commits intomainfrom
t2596-prisma7-url

Conversation

@Choi-Jung-Hyeon
Copy link
Contributor

@Choi-Jung-Hyeon Choi-Jung-Hyeon commented Feb 24, 2026

Description

Prisma 6.13에서 package.json#prisma 설정이 deprecated 경고를 발생시키는 문제를 해결합니다.

  • prisma.config.ts 파일을 새로 생성하여 schema 경로, migrations 경로, seed 명령어를 설정합니다.
  • package.json에서 deprecated된 prisma.seed 설정을 제거합니다.
  • prisma.config.ts 존재 시 Prisma가 .env 자동 로딩을 건너뛰므로, dotenv/config를 import하여 환경 변수를 명시적으로 로딩합니다.
  • 이 변경으로 Prisma CLI 실행 시 아래 deprecation 경고가 더 이상 표시되지 않습니다.
    warn The configuration property package.json#prisma is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., prisma.config.ts).

Additional context

  • prisma validate, prisma generate 모두 정상 동작 확인했습니다.
  • schema.prisma의 datasource.url은 유지합니다 — Prisma 6.13의 config 타입(PrismaConfig)에는 datasource 속성이 아직 없어서, url 제거는 Prisma 7 풀 업그레이드 시 별도 PR로 진행해야 합니다.
  • VS Code Prisma 확장이 url에 대해 에러를 표시할 수 있으나, 이는 확장의 language server가 Prisma 7 기준으로 동작하기 때문이며, CLI(6.13.0)에서는 정상입니다.

Before submitting the PR, please make sure you do the following

Copilot AI review requested due to automatic review settings February 24, 2026 02:32
@Choi-Jung-Hyeon Choi-Jung-Hyeon self-assigned this Feb 24, 2026
@github-project-automation github-project-automation bot moved this to Pending ✋ in Codedang Feb 24, 2026
@Choi-Jung-Hyeon Choi-Jung-Hyeon linked an issue Feb 24, 2026 that may be closed by this pull request
3 tasks
@Choi-Jung-Hyeon Choi-Jung-Hyeon removed a link to an issue Feb 24, 2026
3 tasks
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the backend Prisma configuration to address Prisma 6.13’s deprecation warning for package.json#prisma by migrating settings into a dedicated prisma.config.ts, and adds explicit .env loading for Prisma CLI runs.

Changes:

  • Added apps/backend/prisma.config.ts to configure Prisma schema/migrations (and intended seed command) and explicitly load env via dotenv/config.
  • Removed deprecated package.json#prisma.seed configuration from apps/backend/package.json.
  • Updated pnpm-lock.yaml to include the new dotenv dependency and refreshed package metadata.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
pnpm-lock.yaml Adds dotenv to the lockfile and reflects updated package metadata.
apps/backend/prisma.config.ts Introduces Prisma config file and explicit env loading for Prisma CLI.
apps/backend/package.json Adds dotenv dependency and removes deprecated Prisma config block.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Projects

Status: Pending ✋

Development

Successfully merging this pull request may close these issues.

2 participants