snapshot of https://github.com/raimohanska/ourboard.git (master, 2026-09-23; blobs > 131072B omitted)
This commit is contained in:
7
backend/src/env.ts
Normal file
7
backend/src/env.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import process from "process"
|
||||
|
||||
export function getEnv(name: string): string {
|
||||
const value = process.env[name]
|
||||
if (!value) throw new Error("Missing ENV: " + name)
|
||||
return value
|
||||
}
|
||||
Reference in New Issue
Block a user