Skip to content

Commit 084127f

Browse files
committed
fix: add longitude and latitude to RequestData.geo
1 parent e67c3d2 commit 084127f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime/src/templates/edge/runtime.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const handler = async (req: Request, context: Context) => {
6767
country: context.geo.country?.code,
6868
region: context.geo.subdivision?.code,
6969
city: context.geo.city,
70+
longitude: context.geo.longitude,
71+
latitude: context.geo.latitude,
7072
}
7173

7274
const requestId = req.headers.get('x-nf-request-id')

0 commit comments

Comments
 (0)