-
Notifications
You must be signed in to change notification settings - Fork 35
/
env.ts
28 lines (25 loc) · 874 Bytes
/
env.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { z } from "zod"
const envSchema = z.object({
NEXT_PUBLIC_ALCHEMY_API_KEY: z.string(),
NEXT_PUBLIC_QUICKNODE_API_KEY: z.string(),
NEXT_PUBLIC_INFURA_API_KEY: z.string(),
NEXT_PUBLIC_IPFS_GATEWAY: z.string(),
NEXT_PUBLIC_BLOCKSCOUT_API_KEY: z.string(),
NEXT_PUBLIC_ETHERSCAN_API_KEY: z.string(),
NEXT_PUBLIC_POLYGONSCAN_API_KEY: z.string(),
NEXT_PUBLIC_BASESCAN_API_KEY: z.string(),
NEXT_PUBLIC_ARBISCAN_API_KEY: z.string(),
NEXT_PUBLIC_OPSCAN_API_KEY: z.string(),
NEXT_PUBLIC_MANTLESCAN_API_KEY: z.string(),
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: z.string(),
CRON_SECRET: z.string().min(1),
PINATA_JWT: z.string().min(1),
AUTH_SECRET: z.string().min(1),
DEPLOYER_PRIVATE_KEY: z.string().min(1),
})
envSchema.parse(process.env)
declare global {
namespace NodeJS {
interface ProcessEnv extends z.infer<typeof envSchema> {}
}
}