hello 示例源码
这些文件来自仓库的 examples/hello,可结合对应中文文档阅读和运行。
wrangler.jsonc
{ "name": "hello", "main": "index.js", "compatibility_date": "2026-01-01" }
index.js
export default {
async fetch(request, env) {
return new Response("Hello from cells! url=" + request.url, {
status: 200,
});
},
};