Skip to content

Enable clean URLs for docs site#44

Merged
Mateusz7410 merged 1 commit into
mainfrom
feature/async-0007
Jul 5, 2026
Merged

Enable clean URLs for docs site#44
Mateusz7410 merged 1 commit into
mainfrom
feature/async-0007

Conversation

@Mateusz7410

Copy link
Copy Markdown
Collaborator

Summary

  • Re-enable cleanUrls: true in VitePress config so built internal links drop the .html suffix.
  • Add cleanUrls: true to vercel.json so the host serves pages at the clean path and 308-redirects any .html request to it.

Why

Doc pages open blank when the URL is hit without .html (e.g. links pasted into GitHub release notes), while the .html form works. Root cause: cleanUrls: true was removed from the VitePress config in Aug 2025 (commit b74bd9d, "Fix"), so the site has been .html-only since. In-site navigation still worked because VitePress rewrites internal links, but direct/external clean URLs 404 to a blank shell.

Setting it on both layers fixes it host-side, so no per-link .html bookkeeping in release notes. Old .html links keep working via the redirect.

Test plan

  • npm run docs:build succeeds; built internal hrefs now omit .html (verified in dist)
  • On the Vercel preview: open /explanations/asyncresult-cleanup (renders) and /explanations/asyncresult-cleanup.html (308-redirects to the clean path)

Files

  • vercel.json
  • website/.vitepress/config.mts

Re-enable cleanUrls in VitePress so internal links drop the .html suffix, and turn on Vercel cleanUrls so pages serve at the clean path and .html requests 308-redirect to it. Fixes blank pages when a doc URL is opened without the .html suffix (e.g. from release notes).
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
async-lib Ready Ready Preview, Comment Jul 5, 2026 9:32pm

Request Review

@Mateusz7410
Mateusz7410 merged commit 10dcd68 into main Jul 5, 2026
2 of 3 checks passed
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

🧪 Apex Test Results

✅ All Tests Passed

==========================================
     APEX TEST EXECUTION SUMMARY
==========================================

📊 Total Tests: 159
✅ Passed: 159
❌ Failed: 0
⏭️  Skipped: 0


🎉 All tests passed successfully!

📦 Download Full Test Results & Logs


📊 Stats: 159 total | ✅ 159 passed | ❌ 0 failed
🤖 Automated comment by Salesforce CI

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