A way to get colo for pages?

I know for workers you can get the colo from the req object, but is there a way to get it for pages? Specifically I'm using next-on-pages.
3 Replies
Walshy
Walshy7mo ago
Same way as workers (functions are just workers) Request#cf then colo field
kyle
kyleOP7mo ago
hmm okay, I guess the cf object probably doesn't exist in local dev, but would only exist deployed on CF. that would make sense
Walshy
Walshy7mo ago
it should exist in local too

Did you find this page helpful?