Spaces:
Sleeping
Sleeping
Download apps/api/prisma.config.ts from Benaah/MicProtocol: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/api/prisma.config.ts
- Command line
-
hf download hf://spaces/Benaah/MicProtocol/apps/api/prisma.config.ts
-
curl -L -o prisma.config.ts https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/api/prisma.config.ts
721 Bytes
| import { defineConfig } from "@prisma/config"; | |
| import { config } from "dotenv"; | |
| import { resolve } from "path"; | |
| // Load environment variables from the repo root .env file so that | |
| // DATABASE_URL (and other secrets) are available to the Prisma CLI. | |
| config({ path: resolve(__dirname, "../../.env") }); | |
| export default defineConfig({ | |
| datasource: { | |
| // SECURITY: never hardcode database credentials. DATABASE_URL must | |
| // come from the environment (`.env` / deployment secrets). If it is | |
| // missing, the Prisma CLI fails with a clear error instead of | |
| // silently connecting to an embedded fallback. | |
| url: process.env.DATABASE_URL, | |
| }, | |
| studio: { | |
| port: 5555, | |
| }, | |
| }); | |