Source code for cyroz.net.
index.html- main links pagebeats/index.html- beats pagesetup/index.html- setup pagecamera/index.html- camera setup pagesettings/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.
Install dependencies and build the static Worker assets:
npm install
npm run buildPreview the generated site with Wrangler:
npm run previewOr preview the static build output with a simple local server:
python3 -m http.server 8080 -d distThen visit http://localhost:8080.
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 WorkerCLOUDFLARE_API_TOKEN- a Cloudflare API token with permission to deploy Workers
Alternatively, commits to main can deploy through Cloudflare Workers Builds. In Cloudflare:
- In Cloudflare, create a Worker connected to this GitHub repository.
- Use
/as the root directory. - Use
npm run deployas the deploy command. - 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