Astro.locals.runtime
Edge context
What the bunny.net network tells the script about a request.
| Astro.clientAddress | 216.73.217.33 |
|---|---|
| runtime.country | US |
| runtime.requestId | 1c83571b743ab783f58ef344dba143bd |
| Astro.url | https://astro-ssr-demo.bunny.run/edge |
| User agent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
Every edge header on this request
| cdn-connectionid | 10375196281 |
|---|---|
| cdn-host | astro-ssr-demo.bunny.run |
| cdn-ja4 | t13d1011h2_61a7ad8aa9b6_3fcd1a44f3e3 |
| cdn-loopcount | 1 |
| cdn-mobiledevice | false |
| cdn-proxyver | 1.70 |
| cdn-pullzoneid | 6370161 |
| cdn-requestcountrycode | US |
| cdn-requestid | 1c83571b743ab783f58ef344dba143bd |
| cdn-requeststatecode | OH |
| cdn-serverid | 1430 |
| cdn-serverzone | PB |
Using it
const { country, requestId, clientAddress } = Astro.locals.runtime;
// Keep working after the response goes out.
Astro.locals.runtime.waitUntil(recordVisit(country));