Skip to content

docs(frontend): document CDN deployment with Inertia SSR - #85

Merged
thetutlage merged 4 commits into
mainfrom
docs/inertia-cdn-static-index
Nov 24, 2026
Merged

thetutlage merged 4 commits into
mainfrom
docs/inertia-cdn-static-index

Conversation

@RomainLanz

@RomainLanz RomainLanz commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Warning

prefixes is not available yet. The option is added by adonisjs/static#11, which is still open, and the latest @adonisjs/static release (v2.0.1) does not include it. Do not merge this PR before that one is merged and released.

The CDN guide explains assetsUrl but does not show how to upload Inertia client assets while keeping the SSR files private and available locally.

The guide now uses one CDN_ASSETS_URL at build time and runtime, and uploads client assets from the completed build artifact with aws s3 sync. It excludes manifests and server bundles, retains old hashed assets, and covers CORS, MIME types, cache policy, and deployment ordering.

The Inertia guide explains which files SSR needs locally and links to this workflow. The static file guide documents the new opt-in prefixes option, and states that a public file with no matching prefix is not served.

Verification: all three changed Markdown files parse with edge-markdown without diagnostics; git diff --check passes. An Inertia SSR test keeps only local manifests and server bundles, disables the static middleware, and verifies the generated JS, CSS, and image URLs against a separate HTTP asset origin.

No real CDN upload was performed.

The deployment guide now points to the CDN workflow instead of telling readers to upload all of build/public. The assetsUrl reference example and the entryPoints casing in the API client and Edge reference are aligned with it.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Deploying adonisjs-v7-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc33fc2
Status: ✅  Deploy successful!
Preview URL: https://bd1faba0.adonisjs-v7-docs.pages.dev
Branch Preview URL: https://docs-inertia-cdn-static-inde.adonisjs-v7-docs.pages.dev

View logs

@fleet-panda fleet-panda Bot added the status: incoming The status of the hub task label Nov 17, 2026
@thetutlage thetutlage added status: review The status of the hub task and removed status: incoming The status of the hub task labels Nov 24, 2026
@fleet-panda fleet-panda Bot added status: ready The status of the hub task and removed status: review The status of the hub task labels Nov 24, 2026
@fleet-panda

fleet-panda Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Triage: rework. The pull request has a merge conflict with main, which changed each of its 6 files after the merge base. The factory resolves the conflict on task/T-105, made from the head of this pull request, and opens a new pull request that keeps the commits of @RomainLanz. Do not merge this pull request before then.

RomainLanz and others added 4 commits November 24, 2026 14:29
Explain how to configure the same asset URL at build time and runtime,
and upload client assets without publishing manifests or SSR bundles.
Keep the server files local and retain old hashed client assets during
rolling deployments.

Document the opt-in static file index and its restart requirement.
Fix the SSR bundle filename, document the build failure when
CDN_ASSETS_URL is missing, and move the upload restrictions into
warnings with a solution each. Align the deployment guide and the
assetsUrl reference example with the new CDN workflow.

Move the indexFiles option to the end of the static options list and
fix the entryPoints casing in the API client and Edge reference.
adonisjs/static#11 replaced the public files index with a list of URL
path prefixes. Document the new option, and state that a public file
with no matching prefix is not served.
adonisjs/static#11 now matches prefixes against request.url(), which is
decoded.
@thetutlage
thetutlage force-pushed the docs/inertia-cdn-static-index branch from 94f18b8 to dc33fc2 Compare November 24, 2026 09:00
@thetutlage
thetutlage merged commit 6034f0c into main Nov 24, 2026
1 check passed
@thetutlage

Copy link
Copy Markdown
Member

Thanks :)

@thetutlage
thetutlage deleted the docs/inertia-cdn-static-index branch November 24, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready The status of the hub task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants