Vercel build now bundles docs and the EXEPERT favicon
· One min read
The Vercel deployment path now builds the Rust/WASM app and the Docusaurus docs site together, then publishes the docs from the same origin as the app.
What changed
- Added
scripts/vercel-build.shas the Vercel build command. It prepares Rust, installs thewasm32-unknown-unknowntarget andwasm-pack, runs the Vite production build, buildsdocs-site/, and merges the rendered docs intodist/. - Added
scripts/copy-docs-build.mjsto copydocs-site/buildintodist/while skipping the docs site's rootindex.html. The app stays mounted at/, and Docusaurus pages are available under routes like/docs/getting-started/introduction/. - Replaced hardcoded
localhost:3000documentation links with environment-aware links. Local app origins usehttp://localhost:3000; production uses the app's deployed origin unlessVITE_DOCS_URLis explicitly set. - Added EXEPERT favicon assets for the app and docs site:
public/favicon.png,public/favicon-32.png,public/favicon-192.png,public/apple-touch-icon.png, anddocs-site/static/img/favicon.png.
Deployment note
Set Vercel's Build Command to:
bash scripts/vercel-build.sh
Leave the Output Directory as dist. Do not set VITE_DOCS_URL for the normal
Vercel deployment unless the docs are intentionally hosted somewhere else.