Skip to main content

Railway Docs Site

This Docusaurus app is separate from the main BarnBuddy client and server.

Folder

The docs app lives at:

docs

This folder sits next to:

client
server

Railway Setup

  1. Create a new Railway service from the BarnBuddy repository.
  2. Set the service root directory to docs.
  3. Let Railway install dependencies with npm install.
  4. Use the start command:
npm run railway:start

This command serves the generated static build with serve.js. Docusaurus is used only while building the site, which keeps its development toolchain out of the production runtime.

  1. Add the custom domain:
doc.barnbuddy.pro
  1. Follow Railway's DNS instructions for the domain record.

Local Commands

Install dependencies:

npm install

Start local docs:

npm run start

Build:

npm run build