For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fastify

Run Fastify apps in server mode on Hostinger Node.js hosting, covering hPanel build settings, 0.0.0.0 host binding, PORT configuration, and logging tips.

High-performance Node.js HTTP framework. Lower overhead than Express, schema-based validation out of the box. Hostinger runs Fastify apps in server mode.

app_type: fastify

Server mode

Fastify is server-only.

package.json

{
  "scripts": {
    "start": "node server.js",
    "dev": "node --watch server.js"
  },
  "dependencies": {
    "fastify": "^4.28.0"
  }
}

For TypeScript:

{
  "scripts": {
    "build": "tsc",
    "start": "node dist/server.js"
  }
}

Minimal server.js

hPanel settings

Plain JavaScript:

Field
Value

Application type

fastify

Build script

— (leave blank)

Output directory

— (leave blank)

Entry file

server.js

TypeScript:

Field
Value

Application type

fastify

Build script

build

Output directory

dist

Entry file

dist/server.js

Static mode

Not applicable. To serve static files, use @fastify/static:

Notes

  • Listen on 0.0.0.0 and process.env.PORT — Fastify's default host is 127.0.0.1, which isn't reachable from outside the container.

  • Use Fastify's built-in logger (logger: true) so request logs show up in Hostinger's build/runtime logs.


Last updated: July 21, 2026

Last updated

Was this helpful?