2 Comments
User's avatar
Stefan Schneider's avatar

```ts

const configSchema = z.object({

PORT: z.coerce.number(),

DATABASE_URL: z.string().url(),

});

```

This could be an alternative if you just want to have a number for `PORT`

Expand full comment