Skip to content

Commit 5caa09c

Browse files
committed
docs(sdk): also fix cdn_url/cache_kind in comments and prose (gate misses comments)
1 parent ad997bf commit 5caa09c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

sdk/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ field that does not exist on the actual type.
9797

9898
### Paste-and-go assets — content-addressed URLs with SRI
9999

100-
`r.blobs.put` returns an `AssetRef`. The `cdn_url` is content-addressed (`pr-<public_id>.run402.com/_blob/<key>-<8hex>.<ext>`), served through CloudFront, and never needs cache invalidation. The browser refuses execution on byte mismatch via SRI:
100+
`r.blobs.put` returns an `AssetRef`. The `cdnUrl` is content-addressed (`pr-<public_id>.run402.com/_blob/<key>-<8hex>.<ext>`), served through CloudFront, and never needs cache invalidation. The browser refuses execution on byte mismatch via SRI:
101101

102102
```ts
103103
const logo = await r.blobs.put(projectId, "logo.png", { bytes });
104-
// logo.cdn_url → drop into <img src="…">
105-
// logo.sri → "sha256-…" for <script integrity="…">
106-
// logo.etag → strong "sha256-<hex>"
107-
// logo.cache_kind → "immutable" | "mutable" | "private"
104+
// logo.cdnUrl → drop into <img src="…">
105+
// logo.sri → "sha256-…" for <script integrity="…">
106+
// logo.etag → strong "sha256-<hex>"
107+
// logo.cacheKind → "immutable" | "mutable" | "private"
108108
```
109109

110110
`immutable: true` is the default since v1.45 — pass `false` only when you specifically want to skip the SHA-256 pass on a very large upload.

sdk/llms-sdk.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ The CLI (`run402`), MCP server (`run402-mcp`), `@run402/functions`, and the Open
615615
- **Provision before authoring HTML.** The `anon_key` is permanent and must be embedded in your frontend; provision first, then write the HTML.
616616
- **Use the manifest for access control**, never raw `GRANT/REVOKE`.
617617
- **`user_owns_rows` is the default for user-scoped data.** Reach for `public_read_write_UNRESTRICTED` only on intentionally-public tables.
618-
- **Use immutable `cdn_url` from `r.blobs.put`.** It's correct from the moment of upload — no `waitFresh` needed.
618+
- **Use immutable `cdnUrl` from `r.blobs.put`.** It's correct from the moment of upload — no `waitFresh` needed.
619619
- **Don't bake unconditional `r.allowance.requestFaucet()` into deploy scripts** — the faucet rate-limits and breaks already-funded flows.
620620
- **Per-project rate limit is 100 req/sec.** On 429, back off using `retry_after`.
621621
- **`r.service.status()` works without auth.** Use it before evaluating Run402, or to distinguish platform issues from your own bugs.

0 commit comments

Comments
 (0)