Update Node.js build settings
hosting_updateNode_jsBuildSettingsV1Update or create Node.js build settings for your Hostinger website. Correct auto-detected app types or add missing entry files to ensure Git auto-deployments build successfully.
Instructions
Replaces the build settings stored for the website. Send the full set: node_version is
required and every nullable field you omit is stored as null. Creates the settings when
none exist yet.
This does not start a build. Stored settings drive Git auto-deployment builds; a build
started through the API uses the values sent in that request, so to rebuild with corrected
settings call Start Node.js build with the same values. Typical fixes: a wrong app_type
after auto-detection, or a missing entry_file for express, fastify, nest, nuxt and hono
apps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name | |
| app_type | No | Node.js application framework. Set it explicitly when auto-detection picked the wrong one. | |
| username | Yes | username parameter | |
| entry_file | No | The main entry point file for the application (required for express, fastify, nest, nuxt and hono app types) | |
| build_script | No | The package.json script that builds the application | |
| node_version | Yes | Node.js major version | |
| root_directory | No | Application root directory (where package.json is located) relative to public_html. Omit it, or send ".", for public_html itself. | |
| package_manager | No | Package manager used to install dependencies | |
| output_directory | No | Build output directory relative to the root directory |