Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vercel/vercel
/ getProvidedRuntime
Function
getProvidedRuntime
packages/build-utils/src/os.ts:33–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
31
}
32
33
export
async
function
getProvidedRuntime() {
34
const
os =
await
getOsRelease();
35
if
(!os) {
36
return
'provided.al2023'
;
37
}
38
39
return
os.PRETTY_NAME ===
'Amazon Linux 2'
40
?
'provided.al2'
41
:
'provided.al2023'
;
42
}
Callers
1
build
Function · 0.90
Calls
1
getOsRelease
Function · 0.85
Tested by
no test coverage detected