This is the Fastify Hello world example on Render.
The app in this repo is deployed at https://fastify.onrender.com.
Note: Fastify's
.listen
method default binding useslocalhost
(127.0.0.1
), whereas Render requires0.0.0.0
.
See https://render.com/docs/deploy-node-fastify-app or follow the steps below:
Create a new web service with the following values:
- Build Command:
npm install
- Start Command:
node app.js
Or simply click:
That's it! Your web service will be live on your Render URL as soon as the build finishes.