,
This commit is contained in:
parent
991574c91b
commit
18462ccb4d
5 changed files with 5 additions and 5 deletions
|
|
@ -198,7 +198,7 @@ app.post("/usuarios", async (req, res) => {
|
|||
```typescript
|
||||
// ✅ Validar env no boot da aplicação
|
||||
export const ambiente = () => z.object({
|
||||
DATABASE_URL: z.string().url(),
|
||||
DATAbase_url: z.string().url(),
|
||||
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
|
||||
}).parse(process.env)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue