Railway is a developer platform that can deploy nano directly from a GitHub repository with no extra configuration. nano ships aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mohameodo/nano/llms.txt
Use this file to discover all available pages before exploring further.
railway.json that tells Railway to build with Nixpacks and start the compiled Node.js server — the whole setup is handled automatically.
How It Works
The repository includes arailway.json at the project root:
builder: "NIXPACKS"— Railway uses Nixpacks to auto-detect the Node.js environment, install pnpm, and runpnpm build.startCommand— launches the compiled Astro Node standalone server directly. No extra wrapper script is needed.restartPolicyType: "ON_FAILURE"— Railway restarts the service automatically if it crashes.
@astrojs/node path (no VERCEL or CF_PAGES variables are set), nano builds with the standard standalone Node output.
Deploy to Railway
Connect your GitHub repository
Log in to railway.app, click New Project → Deploy from GitHub repo, and select your nano repository. Railway immediately queues a build.
Railway builds with Nixpacks
Railway reads
railway.json, detects Node.js, installs pnpm via corepack, and runs pnpm build. No additional build configuration is required.Set environment variables
Go to your service in the Railway dashboard, open Variables, and add your configuration:
| Variable | Recommended value | Notes |
|---|---|---|
PORT | 3000 | Railway may set this automatically |
HOST | 0.0.0.0 | Required for Railway’s internal networking |
TMDB_API_KEY | (your key) | Optional — built-in fallback exists |
TMDB_ACCESS_TOKEN | (your token) | Optional — built-in fallback exists |
SITE_NAME | my nano | Display name in the UI |
DEFAULT_SERVER | nemu | Default streaming server |
ENABLE_AUTH | false | Set true to enable login page |
DATABASE_TYPE | json | Or postgres if you add a Railway PostgreSQL plugin |
DATABASE_URL | (from Railway plugin) | Auto-provided when you attach a Postgres service |
PostgreSQL on Railway
Railway has a first-party PostgreSQL plugin. Add it to your project, and Railway automatically injectsDATABASE_URL into your nano service. Set DATABASE_TYPE=postgres to tell nano to use it instead of the default local JSON storage.
Deploying to Render
nano also ships arender.yaml for Render, which follows the same Node.js deployment pattern:
render.yaml automatically. The build command (pnpm install && pnpm build) and start command (node dist/server/entry.mjs) are identical to the Railway setup.