Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ isLocalDev
Function
isLocalDev
src/core/mode/local-dev.js:11–17 ·
view source on GitHub ↗
(opt_win)
Source
from the content-addressed store, hash-verified
9
* @
return
{boolean}
10
*/
11
export
function
isLocalDev(opt_win) {
12
if
(isProd()) {
13
return
false;
14
}
15
16
return
!!self.AMP_CONFIG?.localDev || isTest(opt_win);
17
}
Callers
nothing calls this directly
Calls
2
isProd
Function · 0.90
isTest
Function · 0.90
Tested by
no test coverage detected