Render.com
Deploy Nitro apps to Render.
Preset: render-com
(switch to this preset)
Nitro supports deploying on Render with minimal configuration.
Set up application
- Create a new Web Service and select the repository that contains your code.
- Ensure the 'Node' environment is selected.
- Depending on your package manager, set the build command to
yarn && yarn build
,npm install && npm run build
, orpnpm i --shamefully-hoist && pnpm build
. - Update the start command to
node .output/server/index.mjs
- Click 'Advanced' and add an environment variable with
NITRO_PRESET
set torender-com
. - Click 'Create Web Service'.
Infrastructure as Code (IaC)
- Create a file called
render.yaml
with following content at the root of your repository.
This file followed by Infrastructure as Code on Render
services:
- type: web
name: <PROJECTNAME>
env: node
branch: main
startCommand: node .output/server/index.mjs
buildCommand: npm install && npm run build
envVars:
- key: NITRO_PRESET
value: render-com
- Create a new Blueprint Instance and select the repository containing your
render.yaml
file.
You should be good to go!
Table of Contents