mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
17 lines
369 B
TypeScript
17 lines
369 B
TypeScript
import { createEnv } from "@t3-oss/env-core"
|
|
import { z } from "zod/v4"
|
|
|
|
const env = createEnv({
|
|
server: {
|
|
WEB_ORIGIN: z.string().optional().default("http://localhost:3000"),
|
|
SOCKER_PORT: z.string().optional().default("3001"),
|
|
},
|
|
|
|
runtimeEnv: {
|
|
WEB_ORIGIN: process.env.WEB_ORIGIN,
|
|
SOCKER_PORT: process.env.SOCKER_PORT,
|
|
},
|
|
})
|
|
|
|
export default env
|