This commit is contained in:
Luiz Silva 2026-08-15 14:26:58 -03:00
parent 991574c91b
commit 18462ccb4d
5 changed files with 5 additions and 5 deletions

View file

@ -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)