Can I use this article discussing geolocation data in a worker, so immediately upon connecting to a domain/subdomain, the worker redirects traffic based on geolocation?
But without needing to load an application, so it is as fast as possible, therefore at the server level (apache, nginx) would be great.
But I don’t even know how to reach the point of handling a request, let alone redirecting traffic. Is there someway I can learn more about where this would be setup in a worker?
Two paths, one is looking at the Workers documentation and, more importantly, learn JS (try and fail, test things, possibly not on production domains).
It’s not Node.js, it’s V8 based, the same engine that powers Node.js. You can’t access any of the npm modules unless you import them and have the code embedded in the .js file you “upload”. There are build tools to help with this (check their own Wrangler CLI).