Skip to content

Fix Netlify publish dir so /docs/ is reachable#1664

Merged
qunabu merged 1 commit intodevelopfrom
fix/netlify-publish-dir
Apr 28, 2026
Merged

Fix Netlify publish dir so /docs/ is reachable#1664
qunabu merged 1 commit intodevelopfrom
fix/netlify-publish-dir

Conversation

@qunabu
Copy link
Copy Markdown

@qunabu qunabu commented Apr 28, 2026

Summary

Follow-up to #1663. The Netlify deploy succeeded but https://hyperformula-docs.netlify.app/docs/ returns 404.

Root cause: with base: '/docs/', VuePress emits assets and internal links under /docs/... and writes the build to docs/.vuepress/dist/docs/. Setting publish = "docs/.vuepress/dist/docs" made Netlify serve those files at /, so the page rendered but every internal /docs/... reference 404'd. The publish dir must be the parent of the base path so the on-disk docs/ subdirectory becomes the URL /docs/.

Change: publish = "docs/.vuepress/dist" in netlify.toml.

Test plan

  • Netlify deploys successfully.
  • https://hyperformula-docs.netlify.app/docs/ renders the docs home (no 404).
  • Sub-pages like /docs/guide/demo.html load with assets and CSS intact.
  • /sitemap.xml is reachable and entries point at https://hyperformula.handsontable.com/docs/....

Note

Low Risk
Low risk configuration-only change that affects where Netlify serves built docs from; primary risk is misconfiguration leading to broken/404 docs paths.

Overview
Fixes the Netlify deployment config by changing the publish directory from docs/.vuepress/dist/docs to docs/.vuepress/dist, ensuring the built docs/ subdirectory is served at /docs/ and internal asset/link paths resolve correctly.

Reviewed by Cursor Bugbot for commit be5594b. Bugbot is set up for automated code reviews on this repo. Configure here.

`base: '/docs/'` makes VuePress emit assets and internal links under
`/docs/...`. To serve them at `https://<domain>/docs/`, Netlify must
publish the parent of the `dest` directory so the on-disk `docs/`
subdirectory becomes the URL path. Publishing the dest itself made the
files reachable at `/` while their internal `/docs/...` references
404'd.
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for hyperformula-docs ready!

Name Link
🔨 Latest commit be5594b
🔍 Latest deploy log https://app.netlify.com/projects/hyperformula-docs/deploys/69f0acf155fbb10008ee88bf
😎 Deploy Preview https://deploy-preview-1664--hyperformula-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@qunabu qunabu merged commit 8b525cb into develop Apr 28, 2026
33 of 34 checks passed
@qunabu qunabu deleted the fix/netlify-publish-dir branch April 28, 2026 12:53
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.18%. Comparing base (110a28a) to head (be5594b).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1664   +/-   ##
========================================
  Coverage    97.18%   97.18%           
========================================
  Files          174      174           
  Lines        15086    15086           
  Branches      3223     3223           
========================================
  Hits         14662    14662           
  Misses         424      424           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

Performance comparison of head (be5594b) vs base (110a28a)

                                     testName |   base |   head | change
------------------------------------------------------------------------
                                      Sheet A | 484.07 |    485 | +0.19%
                                      Sheet B | 155.01 | 154.36 | -0.42%
                                      Sheet T | 136.45 | 134.74 | -1.25%
                                Column ranges | 509.15 | 508.42 | -0.14%
Sheet A:  change value, add/remove row/column |  15.03 |  15.18 | +1.00%
 Sheet B: change value, add/remove row/column | 132.77 | 134.57 | +1.36%
                   Column ranges - add column | 155.82 | 151.29 | -2.91%
                Column ranges - without batch | 466.12 | 467.51 | +0.30%
                        Column ranges - batch | 120.35 | 117.97 | -1.98%

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