This is a fork of the starter template for creating documentation with Nextra.
Small changes to enable reading from a private github repo while deploying on railway.app
- Point railway to this repository https://github.com/mecattaf/nextra
- Enable Public Networking
- Custom Build Command
npm run prebuild
- Custom Start Command
npm run build && npm run start
- Add private repo Variables to railway
ACCESS_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
REPO_URL=github.com/{user}/{private repo}.git
Note: For access token, generate classic gh key with access to private repositories