Requirements
Project Structure
Configuration
package.json
vertracloud.config
Complete Example
Use host: '0.0.0.0' in fastify.listen(). Fastify by default listens only on localhost, preventing external connections inside the container.
Deploy
- Exclude
node_modules from the project
- Compress into ZIP or connect via GitHub
- Select Node.js as language
- Configure memory (256MB for simple APIs, 512MB+ for heavy processing APIs)
- Click “Create Application”
Available Versions
Differences from Express
Notes
- Fastify has built-in schema validation — use it to ensure request integrity
- For TypeScript, compile to JavaScript before deployment
- The built-in logger from Fastify appears in dashboard real-time logs
- Enable auto-restart for production applications