Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WebDevSimplified/course-platform
/ getUserCountry
Function
getUserCountry
src/lib/userCountryHeader.ts:17–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
}
16
17
async
function
getUserCountry() {
18
const
head =
await
headers()
19
return
head.get(COUNTRY_HEADER_KEY)
20
}
21
22
export
async
function
getUserCoupon() {
23
const
country =
await
getUserCountry()
Callers
1
getUserCoupon
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected