Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/caching/keys.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/caching/keys.ts |
| Original SHA-256 | 0317de3100692cfb1331220d1a49819a1cc154e48631b39174a00e6a044fb7bd |
| Git blob SHA | 2380260f2c86905bc530340c96f3c63610348fba |
| Reading-copy SHA-256 | 0317de3100692cfb1331220d1a49819a1cc154e48631b39174a00e6a044fb7bd |
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
*/
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
}
})