This repository contains the source of truth for a vanityURLs short-link redirector instance.
Instance-owned configuration lives in custom/ and wrangler.toml. Product defaults live in defaults/ and are
refreshed by npm run upgrade.
Install dependencies once after cloning or upgrading:
npm installReview the current links:
./scripts/lnk listAdd or edit links with ./scripts/lnk, then verify the instance:
npm run checkCommit and push changes to GitHub. When the repository is connected to Cloudflare Workers & Pages, Cloudflare deploys the pushed commit automatically.
custom/v8s-links.txtis the human-authored source of truth for short linkscustom/v8s-site-config.jsonstores instance settings such as domain, languages, operator contacts, branding, and link defaultscustom/v8s-policies.jsonstores instance destination policy overrides when neededwrangler.tomlstores the Worker name, route, assets binding, and Cloudflare variables
Generated files in build/, src/, and functions/ are build outputs. Do not edit them directly.
npm run setup
npm run check
npm run local-install
./scripts/lnk --help
./scripts/lnk listUse the vanityURLs documentation site for setup, customization, and operations:
- Quickstart: https://www.vanityurls.link/en/docs/setup/quickstart/
- LNK command line interface: https://www.vanityurls.link/en/docs/command-line-interface/lnk/
- Configuration files: https://www.vanityurls.link/en/docs/reference/configuration-files/
- Upgrading an instance: https://www.vanityurls.link/en/docs/reference/upgrading/