Skip to content

tadhglewis/cloudflare-pages-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

cloudflare-pages-url-shortener

URL shortener boilerplate using Cloudflare Pages and _redirects

Setup

  • Fork repository
  • Go to Cloudflare Pages and create a new project with the cloudflare-pages-url-shortener repository
  • Attach a custom domain in the Custom domains tab - optional
  • Edit the _redirects file (formatting) and push your changes to GitHub - this will trigger a deploy with your latest shortened urls

Formatting

Cloudflare Pages docs on _redirects formatting

Example