Skip to the page

build / sleep

Sleep

Production never sleeps. Development and previews sleep after 30 minutes without visits, wake on the next request, and use none of your cubes while they sleep.

What sleeps

whatsleeps
.app, productionnever
workers on .appnever
cron jobsstart on time and stop when done
.dev, developmentafter 30 minutes without visits
previews on .devafter 30 minutes without visits
databasesnever

Waking up

The first request waits while the service starts, up to 30 seconds, then gets the normal answer. It works the same for a page, an API call or a webhook.

Change the time

Choose 15, 30 or 60 minutes, 24 hours or never, for the organisation, a project, or a single service or preview. The most specific setting wins.

terminal
$ 00b5e2 sleep set my-site --after 60m
my-site on .dev sleeps after 60 minutes