Adjusts in git config
This commit is contained in:
parent
2568156c91
commit
060bc58918
3 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,12 @@
|
|||
import "dotenv/config";
|
||||
import { defineConfig } from "prisma/config";
|
||||
|
||||
process.env.DATABASE_URL = process.env.DATABASE_URL || `postgresql://${process.env.DB_USER}:${process.env.DB_PASSWORD}@${process.env.DB_HOST}:${process.env.DB_PORT}/${process.env.DB_NAME}`;
|
||||
|
||||
if (!process.env.DATABASE_URL) {
|
||||
throw new Error("Variáveis de ambiente não definidas");
|
||||
}
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
schema: "prisma/schema.prisma",
|
||||
|
|
|
|||
|
|
@ -9,4 +9,5 @@
|
|||
"strict": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "./tsconfig.tools.json" }]
|
||||
}
|
||||
|
|
@ -1,9 +1,11 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"types": ["node"],
|
||||
"typeRoots": ["./node_modules/@types"],
|
||||
"strict": true
|
||||
},
|
||||
"include": ["prisma.config.ts"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue