Skip to content

Repository files navigation

cyroz.net

Source code for cyroz.net.

Pages

  • index.html - main links page
  • beats/index.html - beats page
  • setup/index.html - setup page
  • camera/index.html - camera setup page
  • settings/index.html - settings/downloads page

Legacy .html URLs and the old /vidcord/ shortcut are handled by the Cloudflare _redirects file and return permanent redirects to their canonical destinations.

Local Preview

Install dependencies and build the static Worker assets:

npm install
npm run build

Preview the generated site with Wrangler:

npm run preview

Or preview the static build output with a simple local server:

python3 -m http.server 8080 -d dist

Then visit http://localhost:8080.

Cloudflare Workers Deployment

This repository is configured for Cloudflare Workers Static Assets in wrangler.jsonc.

Commits to main deploy through the GitHub Actions workflow in .github/workflows/deploy.yml. Add these repository secrets in GitHub before relying on push deploys:

  • CLOUDFLARE_ACCOUNT_ID - the Cloudflare account ID that owns the Worker
  • CLOUDFLARE_API_TOKEN - a Cloudflare API token with permission to deploy Workers

Alternatively, commits to main can deploy through Cloudflare Workers Builds. In Cloudflare:

  1. In Cloudflare, create a Worker connected to this GitHub repository.
  2. Use / as the root directory.
  3. Use npm run deploy as the deploy command.
  4. After the Worker deployment is live, disable GitHub Pages for this repository.

To serve cyroz.net, add the domain to Cloudflare DNS, update the registrar nameservers to Cloudflare's nameservers, and then attach cyroz.net to the cyroz-net Worker from the Worker's Domains tab.

For a local deploy validation without publishing:

npm run check

About

Source code for cyroz.net

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages