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.
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.
API Token authentication
u123456789Domain name
mydomain.tldSuccess response
Node.js major version used to build and run the application
20Detected or chosen application framework
vitePossible values: Application root directory (where package.json is located) relative to public_html; null means public_html itself
frontendBuild output directory relative to the root directory
distThe package.json script that builds the application
buildThe main entry point file for the application
server.jsPackage manager used to install dependencies
npmPossible values: Unauthenticated response
Error response
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?