1
0
Klaudiusz Dembler f9ec0b655b add custom OpenGraph preview for YPP landing page (#3558) vor 1 Jahr
..
src 5f47be6634 Geolocation awareness in distributor selection (#2866) vor 2 Jahren
.cargo-ok 5f47be6634 Geolocation awareness in distributor selection (#2866) vor 2 Jahren
.gitignore 5f47be6634 Geolocation awareness in distributor selection (#2866) vor 2 Jahren
README.md 5f47be6634 Geolocation awareness in distributor selection (#2866) vor 2 Jahren
package.json f9ec0b655b add custom OpenGraph preview for YPP landing page (#3558) vor 1 Jahr
tsconfig.json 5f47be6634 Geolocation awareness in distributor selection (#2866) vor 2 Jahren
webpack.config.js 5f47be6634 Geolocation awareness in distributor selection (#2866) vor 2 Jahren
wrangler.toml f9ec0b655b add custom OpenGraph preview for YPP landing page (#3558) vor 1 Jahr

README.md

Atlas Cloudflare Worker

This repository contains code for deploying a Cloudflare Worker that can be used to enable social previews generation for an Atlas instance. For an overview of this feature, see a section in docs. Cloudflare Worker can act as an entrypoint, as an alternative to Nginx config provided in ci/ directory, that will redirect social media crawlers to an instance of atlas-meta-server.

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