Publish to a subfolder route via external_web (tangonexus.com/nexus) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "external-web-publish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Makes this module publishable to a subfolder of a domain celilo does not govern — a cPanel host that owns its own domain, DNS and TLS — via the new
external_webcapability, while still working withpublic_web(Caddy) unchanged.Two commits:
5d49260— deployment configs for external_web (was sitting unpushed on localmain)on_install.tstakescapabilities.external_web ?? capabilities.public_web; both declaredoptionalrouteconfig var, default/nexus, passed aspublishStaticSite({ path: route, ... })astro.config.mjsreadsbasefromprocess.env.CELILO_ROUTE;build.commandexportsCELILO_ROUTE=/nexusdns_registrarrequirement — the host owns DNShealth_check.tsfetches the page and the first asset the served HTML references0.2.07434a52— favicon base-path fix + dep bumpThe bug the second commit fixes
The route is a build-time constant. Astro rewrites the asset URLs it can see — bundled JS,
url()in CSS, the@font-facefiles — but not a hand-writtenhref.BaseLayout.astrohad a root-absolutehref="/favicon.svg", which ontangonexus.com/nexusresolves to the host's document root, i.e. the WordPress next door, not us.Built both ways to confirm:
The health check would not have caught this.
firstAssetUrlmatches only.js/.css/.mjs, so it picks the bundled script — correctly prefixed — and passes. Worth knowing the check has that blind spot; a fully-correct page and a page with a broken favicon look identical to it.Also repoints the hook deps at
@celilo/capabilities^0.9.0— the release that actually carriesexternal_web— replacing a hand-assembled0.8.0tree (from before 0.8.0 existed on npm) with a realbun install.Verification
celilo-moduletests 6/6tangonexus.com/nexusfollows once the provider is onboardedNot included
src/pages/play.astrohas unrelated in-progress print-export work in the working tree; deliberately left out of this branch.🤖 Generated with Claude Code