Customization

Custom Runtime Configuration

In this section you will learn how to configure the runtime of your deployment.

nixpacks.toml

In some cases you might have a non default runtime configuration. This could be the case if you run your container, the deployment doesnt fail but you only see a 404 error.

In this case you can create a nixpacks.toml file in your root directory and configure the runtime of your deployment. These commands have to be available in your project.

[phases.build]
cmd = "npm run build"

[start]
cmd = "npm run start"

A whole reference of the configuration file can be found here.

Previous
Environment Variables