- Fork the repository, you just need the
main
branch - Pushed the forked public repository or create a new private repository on GitHub:
- git init
- git add .
- git commit -m "first commit"
- git branch -M main
- git remote add origin ...
- git push -u origin main
- Create a project underneath Cloudflare Workers & Pages
- Connect the repository
- Configure your deployment and build setup:
- Framework preset: (leave empty)
- Build command:
cat static.lnk dynamic.lnk > build/_redirects
- Build output directory:
/build
- The build will fail as you still need to generate
static.lnk
,dynamic.lnk
, andbuild/_headers
later in the process
- Setup a custom domain for your page project
- Configure the DNS entry via Cloudflare DNS
- Define your configuration in the
vanityURLS.conf
with your preferred text editor or viamake config
ifvi
is your cup of tea
- SCRIPT_DIR: the path to your local scripts folder included in your path
- REPO_DIR: the path to your local copy of vanityURLs
- MY_DOMAIN: your tiny internet domain served by Cloudflare
- MY_PAGE: your cloudflare's specific page URL
- Build your initial setup with
make setup
- Generate the header configuration based on your cloudflare's specific page URL and tiny internet domain name
- Generate the initial static.lnk and dynamic.lnk
- Update the static and dynamic redirection lists with your preferred text editor and the
lnk
bash script - Update the main branch of your local git repository and push to GitHub
- Cloudflare will detect the change and initiate a deployment, please give ~15 seconds for your links to become valid
- Open the defined fully qualified domain name for your tiny internet domain name in your web browser, and you should be redirected to https://BHDicaire.com based on the initial configuration
- Fine tune the static and dynamic redirection lists with your preferred text editor and the
lnk
bash script - Add and commit the change to the github repository