Skip to content

Render, DigitalOcean, Railway

Render, DigitalOcean App Platform and Railway build the portal from your Git repository and run it with rapidoc serve. Every push rebuilds it. Sign-in works by adding environment variables, and agents get the /mcp endpoint.

The starter repository deploys a sample portal as it is:

Deploy to Render Deploy to DO Deploy on Railway

To publish your own APIs, click Use this template on the starter’s GitHub page, edit your copy, and deploy it as below.

A portal made by npm create rapidoc@latest or rapidoc init is ready for all three. The hosts run the same scripts from package.json:

Step Command
Build npm run build (rapidoc build)
Start npm start (rapidoc serve, listening on $PORT, which the host sets)
Health check GET /_rapidoc/health
Node.js engines.node in package.json (22.12 or later)
Host How
Render Dashboard → New → Blueprint → your repository. It reads render.yaml.
DigitalOcean App Platform Create App → GitHub → your repository. It detects the build and start scripts. Set the health check path to /_rapidoc/health.
Railway New Project → Deploy from GitHub repo → your repository. It detects the build and start scripts. Set the health check path to /_rapidoc/health, and generate a domain under Networking.

@rapidoc/cli and @rapidoc/server must be dependencies, not dev dependencies: DigitalOcean removes dev dependencies after the build, and npm start needs both. @rapidoc/portal is only needed for the build and stays a dev dependency. A portal made before this layout can be moved over with:

npm install @rapidoc/cli @rapidoc/server
npm pkg set scripts.start="rapidoc serve" engines.node=">=22.12.0"

and, for Render, this render.yaml:

render.yaml
services:
- type: web
name: my-portal
runtime: node
plan: free
buildCommand: npm install && npm run build
startCommand: npm start
healthCheckPath: /_rapidoc/health

With auth in the config, set the secrets in the host’s environment settings, never in the repository: RAPIDOC_SESSION_SECRET (32 or more random characters), RAPIDOC_AUTH_CLIENT_SECRET for a confidential client, and RAPIDOC_PUBLIC_URL, the portal’s address, which must match the callback URL registered with your provider. All variables: Deploy with rapidoc serve.

  • Render: a free web service sleeps after 15 minutes without visits, and the next visit waits up to a minute. A paid instance stays awake.
  • DigitalOcean: web services run on paid instances; the starter’s button uses the smallest one.
  • Railway: billed by usage.

A portal without sign-in is also a plain static site, which these hosts (and others) serve for free without sleeping: see Static hosting.