Deployment & Access
How the FlexPoint docs hub is deployed to Vercel and locked down to internal users via SSO.
The hub is a standard Next.js app and deploys to Vercel. For v1 it is internal-only, gated by Vercel Authentication.
Deploy to Vercel
- Create a new Vercel project from the
flexpoint-docsrepository. - Framework preset: Next.js (auto-detected).
- Build settings (defaults work):
- Install command:
pnpm install - Build command:
pnpm build - Output:
.next
- Install command:
- Set a project domain, e.g.
docs.<your-domain>.
The fumadocs-mdx postinstall regenerates the .source index on every install,
so no extra build step is needed.
Lock it down: internal-only SSO
Use Vercel Deployment Protection → Vercel Authentication to require a logged-in Vercel team member for every request:
- Vercel project → Settings → Deployment Protection.
- Enable Vercel Authentication (Standard Protection) for Production (and Preview).
- Invite the people who should have access to the Vercel team.
This gives SSO-style access control with no application code — anonymous visitors are bounced to Vercel's login. It satisfies the v1 "internal-only" requirement.
Why not a custom auth gate?
We intentionally rely on Vercel Authentication rather than building a custom login. It is zero-maintenance, integrates with the Vercel team, and keeps the hub a pure static/SSG docs site. A public carve-out (some docs public, some private) can be added later if the business needs it.
Cutover from the in-app /docs
The Loan Portal currently serves docs from apps/flex-hub/src/app/docs. Retire it
only after this hub is live:
- Deploy the hub and confirm parity (all migrated pages render).
- In
FlexPointPortal/apps/flex-hub, setDOCS_HUB_URLto the hub's URL. Thenext.config.tsredirect (already wired, env-gated) then sends/docs→ the hub. With the env var unset, the in-app docs keep working — so this is a safe, reversible switch. - Once the redirect is verified in production, delete the in-app docs route and
remove the
fumadocsdependencies fromapps/flex-hub.
Don't delete the in-app docs early
Removing apps/flex-hub/src/app/docs before the hub is live and the
redirect is verified would break the product team's current docs link. Keep
both until cutover is confirmed.