使用Cloudflare worker创建的URL Shortener-JavaScript开发

时间:2024-06-14 20:49:14
【文件属性】:

文件名称:使用Cloudflare worker创建的URL Shortener-JavaScript开发

文件大小:3KB

文件格式:ZIP

更新时间:2024-06-14 20:49:14

JavaScript Miscellaneous

A URL Shortener created using Cloudflare worker Url-Shorten-Worker A URL Shortener created using Cloudflare Worker Getting start 去Workers KV中创建一个命名空间 Go to Workers KV and create a namespace. 去Worker的Settings选选项卡中绑定KV Namespace Bind an instance of a KV Namespace to access its data in a Worker. 其中Variable name填写LINKS, KV namespace填写你刚刚创建的命名空间 Where Variable name should set as LINKS and KV namespace is the namespace you just created in the first step. 复制本项目中的index.js的代码到Cloudflare


【文件预览】:
Url-Shorten-Worker-main
----LICENSE(1KB)
----README.md(1KB)
----index.js(3KB)

网友评论