Klaudiusz Dembler 440dc80dc4 update dependencies (#3522) il y a 1 an
..
src 5f47be6634 Geolocation awareness in distributor selection (#2866) il y a 2 ans
.gitignore 5f47be6634 Geolocation awareness in distributor selection (#2866) il y a 2 ans
README.md 5f47be6634 Geolocation awareness in distributor selection (#2866) il y a 2 ans
package.json 440dc80dc4 update dependencies (#3522) il y a 1 an
tsconfig.json 5f47be6634 Geolocation awareness in distributor selection (#2866) il y a 2 ans
webpack.config.js 5f47be6634 Geolocation awareness in distributor selection (#2866) il y a 2 ans
wrangler.toml 5f47be6634 Geolocation awareness in distributor selection (#2866) il y a 2 ans

README.md

Atlas Cloudflare Geolocation Worker

This repository contains code for deploying a Cloudflare Worker that can be used to get users' geographical coordinates, based on their IP address.

Deploying:

# install Wrangler (CF Workers CLI)
yarn global add @cloudflare/wrangler

# login via your Cloudflare account
wrangler login

# find out your account ID
wrangler whoami

# at this point you will need to update `account_id` entry in wrangler.toml

# deploy to production
wrangler publish --env production