mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
refactor: add typescript & pnpm workspace & docker file
This commit is contained in:
14
packages/web/src/env.ts
Normal file
14
packages/web/src/env.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createEnv } from "@t3-oss/env-nextjs"
|
||||
import { z } from "zod"
|
||||
|
||||
const env = createEnv({
|
||||
server: {
|
||||
SOCKET_URL: z.string().default("http://localhost:3001"),
|
||||
},
|
||||
|
||||
runtimeEnv: {
|
||||
SOCKET_URL: process.env.SOCKET_URL,
|
||||
},
|
||||
})
|
||||
|
||||
export default env
|
||||
Reference in New Issue
Block a user