Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/rate-limiting/keys.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/rate-limiting/keys.ts |
| Original SHA-256 | b0562e227ce49511fcc00c96bb1744544b90260ed279d5351208dccf2019ff79 |
| Git blob SHA | b46915622738460413625fcc90b707d16cb42408 |
| Reading-copy SHA-256 | b0562e227ce49511fcc00c96bb1744544b90260ed279d5351208dccf2019ff79 |
Recovered source transcript
Download complete source text ↓18 lines · 0.4 KB
import { createEnv } from '@t3-oss/env-nextjs'
import { z } from 'zod'
/**
* Validated Upstash Redis environment variables for rate limiting
*/
export const keys = () =>
createEnv({
server: {
KV_REST_API_URL: z.string().min(1).url().optional(),
KV_REST_API_TOKEN: z.string().min(1).optional()
},
runtimeEnv: {
KV_REST_API_URL: process.env.KV_REST_API_URL,
KV_REST_API_TOKEN: process.env.KV_REST_API_TOKEN
}
})