Klaudiusz Dembler 440dc80dc4 update dependencies (#3522) | hai 1 ano | |
---|---|---|
.. | ||
src | %!s(int64=2) %!d(string=hai) anos | |
.gitignore | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
package.json | hai 1 ano | |
tsconfig.json | %!s(int64=2) %!d(string=hai) anos | |
webpack.config.js | %!s(int64=2) %!d(string=hai) anos | |
wrangler.toml | %!s(int64=2) %!d(string=hai) anos |
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