V2 / Deployment
Workers Static Assets Deployment
Host static Astro HTML, Pagefind search shards, and edge webhook routes using a single wrangler.jsonc configuration.
# Workers Static Assets Deployment (V2)
Host static Astro HTML, Pagefind search shards, and edge webhook routes using a single wrangler.jsonc configuration.
import Callout from '../../../components/Callout.astro';
AxisDocs Pro compiles every page, Pagefind shard, and `1200x630` OpenGraph PNG into `./dist` at build time for Cloudflare Workers Static Assets. On `templates.xyside.com`, static assets serve directly from edge storage while `/api/*` requests invoke the storefront fulfillment Worker.
## Configuration (`wrangler.jsonc`)
```jsonc
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "templates-xyside",
"main": "src/worker/index.ts",
"compatibility_date": "2026-11-28",
"compatibility_flags": ["nodejs_compat"],
"assets": {
"directory": "./dist",
"binding": "ASSETS",
"html_handling": "drop-trailing-slash",
"not_found_handling": "404-page",
"run_worker_first": ["/api/*"]
}
}
```
## Creem Webhook Verification
Incoming `POST /api/webhooks/creem` deliveries are verified with Web Crypto HMAC-SHA256 (`creem-signature` header) using constant-time digest comparison. Valid `checkout.completed` events normalize the buyer's `github_username` custom field and issue a read-only collaborator invite to `wtr1951/axisdocs-pro`.
<Callout variant="tip" title="Zero-request Pagefind search">
Because `pagefind --site dist` writes compressed search chunks directly into `dist/pagefind/`, all search queries execute in the browser against static edge assets without consuming Worker requests.
</Callout>
## Support Window
Commercial template buyers receive automated ZIP and repository delivery at checkout, backed by asynchronous troubleshooting during the **Weekend Support SLA: Sat–Sun (UTC+8)** via `support@xyside.com`. AxisDocs Pro compiles every page, Pagefind shard, and 1200x630 OpenGraph PNG into ./dist at build time for Cloudflare Workers Static Assets. On templates.xyside.com, static assets serve directly from edge storage while /api/* requests invoke the storefront fulfillment Worker.
Configuration (wrangler.jsonc)
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "templates-xyside",
"main": "src/worker/index.ts",
"compatibility_date": "2026-11-28",
"compatibility_flags": ["nodejs_compat"],
"assets": {
"directory": "./dist",
"binding": "ASSETS",
"html_handling": "drop-trailing-slash",
"not_found_handling": "404-page",
"run_worker_first": ["/api/*"]
}
}
Creem Webhook Verification
Incoming POST /api/webhooks/creem deliveries are verified with Web Crypto HMAC-SHA256 (creem-signature header) using constant-time digest comparison. Valid checkout.completed events normalize the buyer’s github_username custom field and issue a read-only collaborator invite to wtr1951/axisdocs-pro.
Support Window
Commercial template buyers receive automated ZIP and repository delivery at checkout, backed by asynchronous troubleshooting during the Weekend Support SLA: Sat–Sun (UTC+8) via support@xyside.com.