Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Schroedinger-Hat/tanglecat
/ getEventCodeFromEnvironment
Function
getEventCodeFromEnvironment
app/src/lib/utils/getEventCode.ts:1–4 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
export
function
getEventCodeFromEnvironment(): string | null {
2
const
envCode = process.env.NEXT_PUBLIC_TANGLECAT_EVENT_CODE
3
return
envCode || null
4
}
5
6
export
function
getEventCode(): string | null {
7
// Check environment variable first
Callers
1
getEventCode
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected