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
| what | sleeps |
|---|---|
| .app, production | never |
| workers on .app | never |
| cron jobs | start on time and stop when done |
| .dev, development | after 30 minutes without visits |
| previews on .dev | after 30 minutes without visits |
| databases | never |
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.
$ 00b5e2 sleep set my-site --after 60m
my-site on .dev sleeps after 60 minutes