···1+# Environment Configuration
2+NODE_ENV="development" # Options: 'development', 'production'
3+PORT="8080" # The port your server will listen on
4+HOST="localhost" # Hostname for the server
5+6+# CORS Settings
7+CORS_ORIGIN="http://localhost:*" # Allowed CORS origin, adjust as necessary
8+9+# Rate Limiting
10+COMMON_RATE_LIMIT_WINDOW_MS="1000" # Window size for rate limiting (ms)
11+COMMON_RATE_LIMIT_MAX_REQUESTS="20" # Max number of requests per window per IP
···1+import { z } from "zod";
2+3+export const commonValidations = {
4+ id: z
5+ .string()
6+ .refine((data) => !Number.isNaN(Number(data)), "ID must be a numeric value")
7+ .transform(Number)
8+ .refine((num) => num > 0, "ID must be a positive number"),
9+ // ... other common validations
10+};