https://github.com/danurbanowicz/edge-function-inject-geo
An edge function that injects user geolocation data
https://github.com/danurbanowicz/edge-function-inject-geo
edge-computing geolocation netlify netlify-functions serverless
Last synced: 4 months ago
JSON representation
An edge function that injects user geolocation data
- Host: GitHub
- URL: https://github.com/danurbanowicz/edge-function-inject-geo
- Owner: danurbanowicz
- License: mit
- Created: 2022-09-14T17:26:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T07:37:25.000Z (almost 2 years ago)
- Last Synced: 2025-03-22T17:44:19.721Z (7 months ago)
- Topics: edge-computing, geolocation, netlify, netlify-functions, serverless
- Language: JavaScript
- Homepage: https://edge-function-inject-geo.netlify.app/
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://app.netlify.com/sites/edge-function-inject-geo/deploys)
# Edge Function Inject Geolocation Data
### What is it?
A serverless [Edge Function](https://docs.netlify.com/edge-functions/overview/) example that intercepts the HTTP response body to inject Geolocation data into a static HTML page before it reaches the user.
This is all done at the CDN edge; there is no clientside JavaScript and no round trip to the origin server.
### Check out the [Demo Site](https://edge-function-inject-geo.netlify.app/)
Or deploy your own copy to Netlify
[](https://app.netlify.com/start/deploy?repository=https://github.com/danurbanowicz/edge-function-inject-geo)
### Bug reports, feature requests, etc
This repo is part of an ongoing project I am working on exploring common use cases for serverless functions, and I welcome contributions and suggestions. Feel free to submit an issue or PR!