static-assets 示例源码
这些文件来自仓库的 examples/static-assets,可结合对应中文文档阅读和运行。
wrangler.jsonc
{
"name": "static-assets",
"compatibility_date": "2026-01-01",
"assets": { "directory": "./public" }
}
public/index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>celld static assets</title>
</head>
<body>
<h1>This file is served by celld.</h1>
</body>
</html>
public/_headers
/*
X-Served-By: celld
public/_redirects
/home / 301