← All components
Railway Hosting
Railway hosting configuration for Next.js applications. Includes railway.toml configuration and deployment documentation. Railway provides simple, scalable hosting with built-in databases, monitoring, and CI/CD.
Copy the files below, or open this folder on GitHub. Each file is stamped with a limited-use licence, generator and date. SHA-256 is of the published catalog bytes, before the stamp.
- id
- railway-hosting
- stack
- Next.js
- version
- 1.0.0
- compatibility
- nextjs >=16 <17 · react >=19 <20
- requires
- nextjs-base
- env vars
- RAILWAY_ENVIRONMENT, RAILWAY_PROJECT_ID, RAILWAY_SERVICE_ID
Verified passing · daily buildIntegrity sha256:0e74aca6c64152fa…
Files (3)
railway.toml · sha256:0e74aca6c64152fa…
// Licensed by BotKelp — https://www.botkelp.com
/**
* Railway Configuration
*
* This file configures Railway deployment for your Next.js application.
*
* Source: https://docs.railway.app/reference/railway-toml
* Verified: 2026-09-06
*/
[build]
# Build command for Next.js
command = "npm run build"
# Directory to deploy
watch_patterns = ["package.json", "next.config.js", "next.config.ts"]
[deploy]
# Start command for Next.js
start_command = "npm start"
# Number of instances to run
instances = "1"
# Memory allocation (in MB)
memory = "1024"
# CPU allocation (in vCPUs)
cpu = "1"
[variables]
# Environment variables for production
NODE_ENV = "production"
# Next.js specific variables
# Uncomment and set these as needed
# NEXT_PUBLIC_BASE_URL = "https://your-app.railway.app"
# NEXT_PUBLIC_API_URL = "https://your-app.railway.app/api"
[services]
# Define additional services (databases, etc.)
# Example MySQL service:
# [services.mysql]
# type = "mysql"
# version = "8.0"
# disk_size = "1gb"
# Example PostgreSQL service:
# [services.postgres]
# type = "postgres"
# version = "15"
# disk_size = "1gb"
# Example Redis service:
# [services.redis]
# type = "redis"
# version = "7"
# disk_size = "256mb"