MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / isNetlifyEnvironment

Function isNetlifyEnvironment

src/simyo/js/modules/utils.js:121–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 * @returns {boolean} 是否为Netlify环境
120 */
121export function isNetlifyEnvironment() {
122 const hostname = window.location.hostname;
123 return hostname === 'esim.cosr.eu.org' ||
124 hostname.endsWith('.netlify.app') ||
125 hostname === 'yyxx.com' ||
126 hostname.endsWith('.yyxx.com');
127}
128
129/**
130 * 生成LPA字符串

Callers 1

getApiEndpointsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected