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

Get Node.js build settings

Returns the build settings stored for the website: framework (apptype), Node.js version, root and output directory, build script, entry file and package manager.

Get Node.js build settings

get

Returns the build settings stored for the website: framework (app_type), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet.

Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the Update Node.js build settings endpoint.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Responses
200

Success response

application/json
node_versionintegerRequired

Node.js major version used to build and run the application

Example: 20
app_typestring · enum · nullableRequired

Detected or chosen application framework

Example: vitePossible values:
root_directorystring · nullableRequired

Application root directory (where package.json is located) relative to public_html; null means public_html itself

Example: frontend
output_directorystring · nullableRequired

Build output directory relative to the root directory

Example: dist
build_scriptstring · nullableRequired

The package.json script that builds the application

Example: build
entry_filestring · nullableRequired

The main entry point file for the application

Example: server.js
package_managerstring · enum · nullableRequired

Package manager used to install dependencies

Example: npmPossible values:
get/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings
GET /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "node_version": 20,
  "app_type": "vite",
  "root_directory": "frontend",
  "output_directory": "dist",
  "build_script": "build",
  "entry_file": "server.js",
  "package_manager": "npm"
}

Last updated

Was this helpful?