Skip to content

fix: load site CSS, fonts and images on any host - #178

Merged
Ad1th merged 2 commits into
mainfrom
claude/project-thread-43tsrv
Oct 18, 2026
Merged

Ad1th merged 2 commits into
mainfrom
claude/project-thread-43tsrv

Conversation

@Ad1th

@Ad1th Ad1th commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Before: every page linked its CSS, fonts and images at https://renderd.xyz. That domain does not resolve yet, so the vercel.app address showed raw, unstyled HTML with broken images.

After: pages link to assets and to each other with root-relative paths (/css/site.css, /img/..., /download/). The site renders the same on vercel.app, on renderd.xyz, and on any preview address, with no env var on Vercel.

How: templates use plain root-relative paths, and the stylesheet keeps its cache-busting hash through get_hash. Canonical, og:url, og:image, JSON-LD and the sitemap stay absolute on renderd.xyz. build.sh drops the preview base_url logic (RENDERD_BASE_URL still overrides). CI lychee gets --root-dir for root-relative links, and Lighthouse now serves the same build output Vercel serves. Checked locally: build, word check, lychee (0 errors), Lighthouse budgets all pass, and a screenshot at 127.0.0.1 renders styled.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdYRveYEpgKhTgwUm6XbFW

Zola writes absolute links from base_url, so a preview loaded its CSS,
fonts and images from renderd.xyz. Previews now use VERCEL_URL, and
RENDERD_BASE_URL can set the address for production while DNS is not
ready.
@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
renderd Ready Ready Preview Oct 18, 2026 2:10pm UTC

@Ad1th Ad1th self-assigned this Oct 18, 2026
Pages now link to assets and to each other with root-relative paths, so the
site renders on the vercel.app address and on renderd.xyz alike. Only the
canonical, og and sitemap URLs stay absolute on renderd.xyz. No env var is
needed on Vercel.
@Ad1th Ad1th changed the title fix(docs): build Vercel previews with their own address fix(site): load CSS, fonts and images on any host Oct 18, 2026
@Ad1th Ad1th changed the title fix(site): load CSS, fonts and images on any host fix: load site CSS, fonts and images on any host Oct 18, 2026
@Ad1th
Ad1th merged commit 638d095 into main Oct 18, 2026
11 of 12 checks passed
Ad1th added a commit that referenced this pull request Oct 21, 2026
fix: load site CSS, fonts and images on any host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant