Astro
Choose prerendered public pages or on-demand rendering for fresh and personalized Cavuno data.
A
JAstro prerenders pages by default. That works for public Cavuno content when build-time freshness is acceptable. Use on-demand rendering for frequently changing catalogs, authenticated pages, and any route that reads or writes a session cookie.
Create the client
Render a public jobs page on demand
Use a supported server adapter before setting prerender = false. If the catalog can be stale until the next build, omit that export and let Astro generate static HTML.
Return a native 404
Use the canonical route /companies/[companySlug]/jobs/[jobSlug] and redirect a mismatched company segment to the job’s canonical path.
Keep personalized routes on demand
Candidate, employer, saved-job, application, and messaging pages must not be prerendered. Read the application’s httpOnly cookie from Astro.cookies, pass authorization per SDK call, and return private/no-store cache headers.
Verify the Astro rendering mode
- Inspect the production build output and confirm which routes are prerendered.
- Deploy the chosen adapter and verify on-demand jobs reflect a newly published role without rebuilding.
- Open an invalid job slug and confirm the response status is 404.
- Test two authenticated sessions and inspect cache headers for private routes.
- Inspect raw HTML for the job metadata and structured data required by search engines.
Continue with SEO and structured data for public pages and SSR sessions for personalized routes.