MCPcopy Create free account
hub / github.com/LeetCode-OpenSource/ayanami / isSSREnabled

Function isSSREnabled

src/ssr/flag.ts:1–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export const isSSREnabled = (): boolean => {
2 return typeof process.env.ENABLE_AYANAMI_SSR !== 'undefined'
3 ? process.env.ENABLE_AYANAMI_SSR === 'true'
4 : typeof process !== 'undefined' &&
5 process.versions &&
6 typeof process.versions.node === 'string'
7}
8
9export const SSREnabled = isSSREnabled()

Callers 6

constructorFunction · 0.90
constructorMethod · 0.90
setInstanceInScopeFunction · 0.90
SSREffectFunction · 0.90
useAyanamiFunction · 0.90
flag.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected