> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pxxl.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Project settings

> Every section of a project's Settings tab: name and port, region, build commands, Git, health check, auto-deploy, protection, log drains, transfer and deletion.

The **Settings** tab holds how a project is built, when it deploys, and its lifecycle. Pxxl detects good defaults when you first deploy, so most projects never need to change these. Come here when a build needs a different command, a push should or shouldn't deploy, or you want to move, transfer or delete the project.

Open a project, then **Settings**. The sections are listed on the left; type in **Search project settings** (or press `/`) to jump to one.

![The project Settings tab with the Build section open: Node.js version, install, build, start and pre-deploy commands.](https://mintcdn.com/pxxl/hPMZlEjpo8tX12E4/images/projects/project-settings-build.jpeg?fit=max\&auto=format\&n=hPMZlEjpo8tX12E4\&q=85\&s=18f08c4a0e294db892414eceb0830ede)

## General

| Setting | What it does |
| - | - |
| **Project name** | The name shown in the dashboard. It also sets the project's [private networking](https://docs.pxxl.app/networking/private-networking.md) name. |
| **Port** | The port your app listens on. Domains without their own port route here. Redeploy after changing it. |
| **Project ID** | Copy it for the CLI, the API or support. |
| **Runtime server** | The server and city the project runs on now. |
| **Region** | Where the project runs. See [Regions](https://docs.pxxl.app/networking/regions.md). |

Changing the region moves the project live: the current version keeps serving until the new one is healthy in the new region. Free projects use **Default (automatic)**.

## Build

Override the detected commands only when the project needs it. Leave a field empty to use the detected value, shown in grey.

| Setting | What it does |
| - | - |
| **Node.js version** (or your language's version) | The version your app builds and runs on. Redeploy to switch. |
| **Install command** | Installs dependencies, such as `npm ci` or `pnpm install --frozen-lockfile`. |
| **Build command** | Builds the app, such as `npm run build`. |
| **Start command** | Starts the app, such as `npm start` or `node dist/server.js`. |
| **Pre-deploy command** | Runs once with the new version before it goes live, for example `npm run migrate`. If it fails, the deployment fails and the current version keeps running. [Rollbacks](https://docs.pxxl.app/projects/deployments.md#roll-back) skip it. |
| **Deploy ignore word** | A push whose commit message contains this word or phrase isn't deployed automatically, such as `[skip deploy]`. |
| **Watch paths** | Deploy a push only when it changes a matching file. One pattern per line, `**` for any folder, `!` to exclude. Leave empty to deploy every push. Up to 4,000 characters. |
| **Wait for CI** | Deploy a push only after its GitHub checks pass. A failed check stops the deployment. A push with no checks deploys after 2 minutes. |

Example watch paths for a monorepo where this project lives in `apps/web` and uses a shared package:

```text theme={null}
apps/web/**
packages/ui/**
!**/*.md
```

### Build cache

Pxxl keeps dependencies and framework caches between builds, so later builds are faster. The section shows the cache size. Choose **Clear build cache** if a build keeps using something stale, then redeploy. To build once without the cache, turn off **Use build cache** in the **Redeploy** dialog instead.

## Git

| Setting | What it does |
| - | - |
| **Repository** | The repository and branch Pxxl deploys. **Change** connects another repository; **Unlink** disconnects it. |
| **Branch** | Pushes to this branch are deployed. |
| **Refresh branches** | Reloads the branch list after you create or delete a branch on GitHub. |
| **Base directory** | The folder inside the repository that holds this app, such as `apps/web`. **Browse** lets you pick it. See [Monorepos](https://docs.pxxl.app/deploy/monorepos.md). |

## Health check

Pxxl only sends traffic to a new version once it's healthy.

* **Default**: Pxxl checks that the app is running and accepts connections on its port.
* **Check an HTTP endpoint**: turn it on when your app has a dedicated endpoint. Then set:

| Field | Default | Meaning |
| - | - | - |
| **Health path** | | The path to call, such as `/health`. |
| **Method** | `GET` | `GET` or `HEAD`. |
| **Expected status** | `200` | The deployment is healthy only when this exact status (100–599) comes back. |

A health endpoint should be fast and only check what the app needs to serve requests:

```js theme={null}
app.get("/health", (req, res) => res.status(200).send("ok"));
```

If the new version never returns the expected status, the deployment fails and the current version keeps serving.

## Deployments

| Setting | What it does |
| - | - |
| **Auto-deploy** | On: every push to the branch deploys. Off: deployments only start when you trigger them. |
| **Sync PR previews with project variables** | On: [preview deployments](https://docs.pxxl.app/deploy/previews.md) use the project's variables. Off: they use the preview variables from the **Secrets** tab. |
| **Pause project** | Stops automatic deployments until you restart the project. |
| **Restart project** | Restarts the running instances without building. |

## Protection

Put a shared password in front of the project, for all its domains or only its preview addresses. See [Password protection](https://docs.pxxl.app/projects/password-protection.md). Paid plans.

## Log drains

Send this project's logs to your own HTTPS endpoint or S3-compatible bucket. See [Log drains](https://docs.pxxl.app/projects/log-drains.md). Pro and Enterprise.

## Danger zone

| Action | What happens |
| - | - |
| **Transfer project** | Sends the project to another Pxxl user. They accept or decline from their dashboard. The request expires after 24 hours. |
| **Archive project** | Stops the instance and keeps its variables, domains, deployments and history. An archived project shows only **Settings**; **Restore** brings it back. |
| **Delete project** | Deletes the project and all of its data. This can't be undone. |

> [!WARNING]
>
> Deleting a project removes its deployments, variables, logs and volumes. Back up anything you need first, and archive instead if you might come back to it.

## From the CLI and API

```bash theme={null}
pxxl env list <project-id>             # the project's variables
pxxl env push <project-id> --file .env.production
```

Settings are updated with `PUT /api/v3/projects/:id` and auto-deploy with `PUT /api/v3/projects/:id/auto-deploy`. See [Projects and deployments](https://docs.pxxl.app/integrations/api/projects-deployments.md).

## Where to go next

> [card] [Deployments and rollbacks](https://docs.pxxl.app/projects/deployments.md)
>
> Redeploy, roll back and cancel.

> [card] [Builds](https://docs.pxxl.app/deploy/builds.md)
>
> How Pxxl detects and builds your app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.