RankPilot PoC A · Cloudflare 原生(D1)
Next.js(vinext 1.4.5)+ Cloudflare Workers + D1 + @prisma/adapter-d1 + R2
Workers 运行时
navigator.userAgent:Cloudflare-Workers
caches API:存在
process.versions:{"node":"22.23.4","v8":"","modules":"","zlib":"","brotli":"","zstd":"","ares":"","napi":"","llhttp":"","nghttp2":"","acorn":"","ada":"","simdutf":"","nbytes":"","ncrypto":"","uvwasi":"","uv":"","openssl":"","sqlite":"","icu":"","undici":"","simdjson":"","unicode":"","cldr":"","tz":"","cjs_module_lexer":"","amaro":"","merve":""}
D1 binding:DB;R2 binding:缺失;代理桥:
sqlite_version():D1 拒绝调用(not authorized to use function),见 /api/health
真实落库计数
users
3
workspaces
3
projects
2
runs
3
requests
5
metrics
5
discoveries
1
采集批次与调用记录(含耗时/状态码/字节数)
| id | ws | project | run_code | objective | status | logged | avg_ms | bytes | started_at |
|---|---|---|---|---|---|---|---|---|---|
| 3 | 1 | 1 | RUN-GSC-1112201532 | gsc_sync | succeeded | 1 | - | 128 | - |
| 2 | 2 | 2 | RUN-B-001 | poc_seed | succeeded | 2 | 115 | 1536 | 2026-01-01T00:00:00.000Z |
| 1 | 1 | 1 | RUN-A-001 | poc_seed | succeeded | 2 | 100 | 768 | 2026-01-01T00:00:00.000Z |
最新指标(v_keyword_metric_latest,两套 Workspace)
| id | ws | source | metric | keyword | value | currency | collected_at | metric_key |
|---|---|---|---|---|---|---|---|---|
| 5 | 1 | gsc | clicks | gsc kw 1112201532 | 7 | - | 2026-11-01T00:00:00Z | 1|gsc|clicks|gsc kw 1112201532|US|en|1 |
| 3 | 1 | google_ads | search_volume | seo tools | 1500 | USD | 2026-02-02T00:00:00.000Z | 1|google_ads|search_volume|seo tools|US|en|1 |
| 2 | 2 | google_ads | search_volume | seo tools | 9900 | USD | 2026-01-02T00:00:00.000Z | 2|google_ads|search_volume|seo tools|US|en|2 |
验证端点
/api/health/api/poc/constraints/api/poc/tenant?userId=1&workspaceId=2/api/poc/tenant?userId=1&workspaceId=1/api/poc/immutability/api/poc/concurrency?key=race-demo/api/poc/batch/api/poc/suggest?q=seo&hl=en&gl=us&workspaceId=1&projectId=1/api/poc/scrape?url=https%3A%2F%2Fecompix.net%2Fen%2F/api/poc/csv?workspaceId=1/api/poc/usage/api/poc/prisma