- Adjusted .prettierrc to ensure consistent formatting with a newline at the end of the file. - Reformatted eslint.config.mjs for improved readability by aligning array elements. - Updated pnpm-lock.yaml to use single quotes for consistency across dependencies. - Simplified worktree setup in .cursor/worktrees.json for cleaner configuration. - Enhanced documentation in .cursor/plans to clarify architecture refactoring. - Refactored various service files for improved readability and maintainability, including rate-limiting and auth services. - Updated imports and exports across multiple files for consistency and clarity. - Improved error handling and logging in service methods to enhance debugging capabilities. - Streamlined utility functions for better performance and maintainability across the domain packages.
22 lines
746 B
TypeScript
22 lines
746 B
TypeScript
import { defineConfig } from "prisma/config";
|
|
|
|
// Default connection for local development (matches docker/dev/docker-compose.yml)
|
|
const DEFAULT_DATABASE_URL = "postgresql://dev:dev@localhost:5432/portal_dev";
|
|
|
|
/**
|
|
* Prisma 7 Configuration
|
|
*
|
|
* Centralized configuration for Prisma CLI commands (migrate, studio, etc.)
|
|
* Runtime adapter is configured in PrismaService, not here.
|
|
*
|
|
* @see https://www.prisma.io/docs/orm/reference/prisma-config-reference
|
|
* @see https://www.prisma.io/docs/orm/prisma-schema/overview/data-sources
|
|
*/
|
|
export default defineConfig({
|
|
schema: "./schema.prisma",
|
|
// Database connection for CLI commands (migrate, studio, etc.)
|
|
datasource: {
|
|
url: process.env.DATABASE_URL || DEFAULT_DATABASE_URL,
|
|
},
|
|
});
|