Deploying a Portfoliable site
Portfoliable separates the runtime package from the docs and marketing site. This is intentional: you should not force your app release workflow and your web publishing workflow into one pipeline.
Two deployment tracks
1. Package deployment
This track publishes the npm package and the generated app runtime. It is for the creator package and feature updates.
2. Web deployment
This track publishes the docs and marketing website, usually to a static host such as GitHub Pages.
The web artifact
The web project builds a static VitePress export into:
web/.vitepress/distThat is the artifact deployed by the web release workflow.
Consumer portfolio artifacts
When portfoliable build runs in a generated portfolio, it also writes:
dist/robots.txt
dist/sitemap.xml
dist/404.html
dist/index.md
dist/.well-known/mcp/server-card.jsonSet PORTFOLIABLE_SITE_URL (or SITE_URL) in the production build environment so canonical URLs and the sitemap use the public origin. The generated robots.txt allows discovery and declares Content-Signal: search=yes, ai-train=no.
Consumers can add configs/seo/seo.config.js to customize identity, sameAs, contact/license links, and the optional MCP server card. The generator emits <lastmod> values, JSON-LD for Person/Organization/WebSite and public cases, plus a Markdown homepage alternate. The generated Apache template advertises the Markdown and llms.txt resources with a Link header.
Static hosts must serve real files and generated route directories before handling unknown paths as 404 responses. Do not send every unknown path to the SPA entrypoint, or crawlers may interpret missing pages as successful content.
Recommended production checklist
Before publishing the site, confirm:
- the VitePress build completes locally
- the home page and docs navigation still work as expected
- custom components render correctly in static output
- SEO and share metadata still look correct on the key routes
- home metadata values are still set correctly
- localized routes and
hreflangdata are still valid - visibility flags still prevent or allow indexing as intended
- protected and private cases remain appropriately hidden when configured
Local validation commands
cd web
npm run build
npm run previewThen test the navigation, case routes, and any updated localized pages in the browser.
Best practice
Keep package change management separate from website publishing. The docs site should move when content or marketing changes, while the package release cycle can stay independent.