Skip to content

fix: package Prisma config for Railway deploys#54

Merged
gabedalmolin merged 1 commit intomainfrom
fix/railway-prisma-runtime-config
Mar 11, 2026
Merged

fix: package Prisma config for Railway deploys#54
gabedalmolin merged 1 commit intomainfrom
fix/railway-prisma-runtime-config

Conversation

@gabedalmolin
Copy link
Copy Markdown
Owner

Summary

Package the Prisma runtime configuration needed by Railway deployments so the pre-deploy migration step can resolve its datasource correctly in production containers.

What changed

  • Copied prisma.config.ts and tsconfig.json into the runtime image used by Railway deployments.
  • Updated prisma.config.ts to use the explicit Prisma 7 config shape with schema, migrations, and datasource.url.
  • Added a build-time placeholder DATABASE_URL so prisma generate can run during image builds without depending on production secrets.
  • Clarified in the Railway deployment guide that DATABASE_URL and REDIS_URL must be defined on the auth-api service itself.

Validation

  • npm run typecheck
  • docker build -t auth-api:prisma-runtime-check .
  • npm run lint
  • npm test
  • npm run test:integration when the change affects infrastructure-backed paths

Risks/Notes

  • This change is limited to deployment packaging and Prisma configuration; it does not change API behaviour.
  • Railway still needs a real DATABASE_URL configured on the auth-api service at runtime.

@gabedalmolin gabedalmolin merged commit e61c1b4 into main Mar 11, 2026
5 checks passed
@gabedalmolin gabedalmolin deleted the fix/railway-prisma-runtime-config branch March 11, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant