React (future example)
A dedicated React sample repo (Next.js, Remix, or Vite + API) is not part of this documentation site yet. The patterns match Astro (SSR): run HMAC signing only on the server or in build CI, and pass fully signed src strings into the tree as props or loader data.
Planned stack (sketch)
Section titled “Planned stack (sketch)”| Stack | Where signing runs | Client receives |
|---|---|---|
| Next.js (App Router) | Server Components, Route Handlers, or (Pages Router) getServerSideProps | Image URL strings only |
| Remix | loader / action on the server | JSON with signed URLs |
| Vite + SPA | Separate Node/serverless API, or add SSR if you need render-time sign | Never the HMAC secret |
How this example will differ from Astro
Section titled “How this example will differ from Astro”- Routing —
app/page.tsxand loaders vs.astrofrontmatter andgetStaticPaths. - Env — Next.js:
server-onlymodules and server env (notNEXT_PUBLIC_*for secrets). Vite SPA: only a BFF or build step signs. - Images — Next.js
<Image>needsremotePatterns(or equivalent) for your Rendorix host; alignwidth/heightwith presets.
Checklist before publishing a React example
Section titled “Checklist before publishing a React example”-
signUrlmatches production edge behavior (shared test vectors with the Rendorix stack). - No HMAC secret in the client bundle (
grepRENDORIX_HMACindist/.nextoutput). - Documented base URL and env per environment.
- Short README in the sample repo: how to run the API that signs, how to run the app.
Related reading
Section titled “Related reading”When a public repo exists, this page can gain clone instructions and a link to a Network-tab screenshot of a 200 from your img.* host.