Master Type Safety with Zod: Streamline Data Validation and Schema Management in TypeScript
```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`
👍
```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`
👍