Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
847bc8b to
27dcfc9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant updates to the database integration and development environment for the project, primarily targeting an upgrade to Prisma 7 and the adoption of the Better SQLite3 adapter. The changes also improve environment variable management, update dependencies, and document architectural and development patterns for contributors.
Database Integration and Prisma Upgrade:
@prisma/clientto version 7.1.0, and switched to using@prisma/adapter-better-sqlite3for improved SQLite support. [1] [2]prisma.config.tsfile to define Prisma configuration, including dynamic database URL loading from environment variables.db.client.tsto use the Better SQLite3 adapter and to require theDATABASE_URLenvironment variable, improving error handling and configuration flexibility.Environment Variable and Docker Improvements:
Dockerfileto Node 22, added environment variables for database configuration, and ensured compatibility with Prisma 7 and the new adapter. [1] [2] [3].devcontainer/devcontainer.env_examplewith example environment variables to streamline local development setup.Documentation and Developer Experience:
.github/copilot-instructions.mdto guide contributors on project structure, patterns, and best practices.Dependency Management:
dependenciestodevDependenciesinpackage.jsonand added new type definitions for Better SQLite3, clarifying runtime vs. development requirements. [1] [2]dotenvto dependencies to ensure environment variables are loaded consistently across the codebase.Prisma Schema and Codebase Clean-up:
prisma/schema.prismato remove the hardcoded database URL, making configuration fully environment-driven and ready for Prisma 7 features. [1] [2]