Deployment Guide
This guide stitches together the deployment story for both the main Infowebplus application and the documentation site.
For focused, detailed docs, see:
What gets deployed where
- Main application
- Hosted on Vercel.
- Uses optional Upstash Redis integration for caching.
- Documentation
- Hosted on Cloudflare Pages.
- Built with Docusaurus (this repo).
Main application (Vercel)
Key steps (see the Vercel guide for full details):
- Connect the main Infowebplus repository to Vercel.
- Configure build and output settings according to the Next.js app.
- Optionally install Upstash from the Vercel Marketplace for Redis:
- Automatically provisions a Redis database.
- Sets the
REDIS_URLenvironment variable.
- Ensure required environment variables are configured for Production, Preview, and Development.
Related docs:
Documentation (Cloudflare Pages)
For the docs in this repository:
-
Connect the
docs.infowebplus.comrepo to Cloudflare Pages (GitLab integration). -
Use the build command:
cd docs && npm install && npm run build -
Set the output directory to
docs/build. -
Configure the custom domain
docs.infowebplus.comwith a CNAME pointing to your*.pages.devhost.
See:
Environments and variables
Environment variables are documented in:
At a high level:
- Vercel
- App-related secrets (Sanity, Redis, HubSpot, email, etc.).
- GTM or analytics IDs for the main app.
- Cloudflare Pages
- Usually minimal; optional
GTAG_IDfor analytics on the docs site.
- Usually minimal; optional
TODO
Cross-check actual environment variables in Vercel and Cloudflare dashboards against the configuration guide and update the docs if there are discrepancies.