Configuration

All configuration lives in acme.config.ts at your project root.

Basic config

export default {
  name: "my-app",
  region: "us-east-1",
  runtime: "node",
};

Environment variables

Set env vars in the dashboard or via CLI:

acme env set DATABASE_URL="postgres://..."
acme env set STRIPE_KEY="sk_live_..."

Access them in your code:

const db = connect(process.env.DATABASE_URL);

Regions

Deploy to any of our supported regions:

Region Location
us-east-1 Virginia
us-west-2 Oregon
eu-west-1 Ireland
ap-south-1 Mumbai
export default {
  region: "eu-west-1",
};

Scaling

By default, your app scales to zero when idle and spins up on the first request. Override this:

export default {
  scaling: {
    minInstances: 1,    // always keep 1 running
    maxInstances: 10,   // scale up to 10
    memory: "512mb",    // per instance
  },
};

Custom domains

acme domains add docs.example.com

We provision SSL automatically. See Deployment for full details.