The NestJS API serves the public profile through Apollo Sandbox and loads only the relations selected by the query.
16 lines
331 B
TypeScript
16 lines
331 B
TypeScript
import 'dotenv/config';
|
|
import { defineConfig } from 'prisma/config';
|
|
|
|
const databaseUrl =
|
|
process.env.DATABASE_URL ?? 'postgresql://card:card@localhost:5432/card';
|
|
|
|
export default defineConfig({
|
|
schema: 'prisma/schema.prisma',
|
|
migrations: {
|
|
path: 'prisma/migrations',
|
|
},
|
|
datasource: {
|
|
url: databaseUrl,
|
|
},
|
|
});
|