Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions workers/data-isamples-org/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ wrangler deploy

This publishes the Worker and installs the route `data.isamples.org/*`.

> ⚠️ If another Worker is already bound to `data.isamples.org/*` (e.g. a
> legacy proxy from the original setup), `wrangler deploy` will **replace**
> it. Check `wrangler deployments list` or the Cloudflare dashboard
> (Workers → Routes) before deploying if you want to be cautious.
> The Worker is named `isamples-data` in `wrangler.toml` to match the
> pre-existing Worker that owned `data.isamples.org/*` before this repo
> existed. `wrangler deploy` atomically replaces the existing Worker at
> that name. If you rename, also unassign the old Worker from the route
> first (Cloudflare dashboard → Workers → Routes) or the deploy will
> fail with "already assigned to another worker."

## Verifying

Expand Down
18 changes: 11 additions & 7 deletions workers/data-isamples-org/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@
# caches can treat versioned parquets as immutable. See README.md for deploy
# instructions.

name = "data-isamples-org"
name = "isamples-data"
main = "src/index.js"
compatibility_date = "2026-04-01"

# Bind the R2 bucket that holds the iSamples parquet files.
# The binding name (BUCKET) matches env.BUCKET in src/index.js.
[[r2_buckets]]
binding = "BUCKET"
bucket_name = "isamples-ry"
# Raymond.yee@gmail.com's account — owner of the isamples.org zone and the
# isamples-ry R2 bucket.
account_id = "75e8a095c424e5a4e18fd6f5e6145064"

# Route: everything under data.isamples.org goes through this Worker.
# Zone is inferred from isamples.org being in the same Cloudflare account.
# (Declared before [[r2_buckets]] so TOML doesn't scope it to that table.)
routes = [
{ pattern = "data.isamples.org/*", zone_name = "isamples.org" },
]

# Observability: enable Worker logs in the Cloudflare dashboard.
[observability]
enabled = true

# Bind the R2 bucket that holds the iSamples parquet files.
# The binding name (BUCKET) matches env.BUCKET in src/index.js.
[[r2_buckets]]
binding = "BUCKET"
bucket_name = "isamples-ry"
Loading