A URL shorten service deployed on Cloudflare Pages。
yww.uy
A very simple URL shorten service.
No configuration, no management, just use it.
- Fork this repository.
- Create a Cloudflare API Token with Edit Cloudflare Workers template, and add D1 edit permission manually.
- Set your API Token as repository secret
CLOUDFLARE_API_TOKEN
. - Go to Actions - Deploy - Run workflow, run it once.
Go to your Cloudflare dashboard, find the cf-url-shortener
project in Workers & Pages, enter the Custom domains tab.
Go to your forked repository, click Sync fork - Update branch.
Your Cloudflare Pages project will be update automatically when changes are made to the repository.
ADDITION_HEAD
The content will be placed in the<head>
of the page.
Require bun
bun install bun dev:init-d1
bun dev
from https://github.com/Tsuk1ko/cf-url-shortener
No comments:
Post a Comment