1. Write or bring your Express app
forkrail detects Express from package.json and locates app, index, or server (at the root or in src/, in .ts, .js, .mjs, .cjs, .mts, .cts). Export the app directly or bind process.env.PORT — both styles work identically:
import express from 'express'const app = express()app.use(express.json())app.get('/api/health', (_req, res) => { res.json({ ok: true, runtime: process.version })})export default appNeed Node 22 instead of the Node 24 default? Set "engines": { "node": "22.x" } in package.json. NODE_ENV=production is automatically set for both previews and production so Express hides stack traces on error responses.
2. Deploy & configure limits
forkrail deployforkrail deploy --prod# Adjust memory or maxDuration for future deploymentsforkrail project orders-api --memory 1024 --max-duration 60Related documentation
Ready to deploy your Express project inside your own AWS account?
Quickstart