stack icon indicating copy to clipboard operation
stack copied to clipboard

Source of Truth

Open N2D4 opened this issue 8 months ago • 1 comments


[!IMPORTANT] Refactor codebase to support multiple sources of truth, including Neon, by updating Prisma client management and configuration handling.

  • Behavior:
    • Refactor to support multiple sources of truth, including Neon, by using getPrismaClientForSourceOfTruth() in prisma-client.tsx.
    • Remove @prisma/extension-accelerate and add @prisma/adapter-neon in package.json.
    • Update codegen script in package.json to remove STACK_ACCELERATE_ENABLED condition.
  • Database:
    • Replace prismaClient with getPrismaClientForSourceOfTruth() in various files for database operations.
    • Add getNeonPrismaClient() to manage Neon connections in prisma-client.tsx.
  • Config:
    • Update config schemas in schema.ts to include sourceOfTruth with types neon and hosted.
    • Adjust config handling in config.tsx to accommodate new source of truth logic.
  • Misc:
    • Remove unused enums OAuthAccountMergeStrategy and ProxiedOAuthProviderType from schema.prisma.
    • Minor updates to README.md and other documentation files.

This description was created by Ellipsis for 2604c27541f922419290b858562edeb49bba7da3. You can customize this summary. It will automatically update as commits are pushed.

N2D4 avatar May 01 '25 03:05 N2D4

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stack-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 1:06am
stack-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 1:06am
stack-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 1:06am
stack-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 1:06am

vercel[bot] avatar May 01 '25 03:05 vercel[bot]