Skip to content

botblock/static-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

25f6f95 · Apr 6, 2022

History

44 Commits
Dec 13, 2021
Dec 12, 2021
Jan 16, 2022
Dec 14, 2021
Dec 14, 2021
Dec 13, 2021
Dec 12, 2021
Apr 6, 2022
Nov 7, 2021
Dec 12, 2021
Dec 12, 2021
Nov 7, 2021
Nov 7, 2021
Dec 12, 2021
Dec 13, 2021
Apr 6, 2022
Jan 16, 2022
Jan 16, 2022

Repository files navigation

static-site

The Nuxt.js static site that powers BotBlock.org via Cloudflare Pages.

Access the site at https://botblock.org.

Development

  1. Run make bootstrap to clone BotBlock's open data and best practices repositories.
  2. Develop with the site by running npm run dev.
  3. Lint the codebase by running npm run lint (auto-fix with npm run lint:fix).
  4. Build the site statically by running npm run build.

Deployments

A single Cloudflare Pages environment is configured for this repository. Automatic deployments in Cloudflare are disabled, and instead, branch webhooks are triggered in Cloudflare Pages from GitHub Actions workflows for the production and staging branches.

Cloudflare Pages is set to run make bootstrap && npm run build when a branch webhook is triggered.

All deployments are seen as preview deployments by Cloudflare, and are tagged based on the branch they were deployed from. Each branch is accessible as a subdomain of the base Cloudflare Pages environment.

CNAME records have been configured for staging.botblock.org and botblock.org.