Netlify
Deploy the server to Netlify Functions with an S3-compatible bucket, and run the expiry task from a scheduler.
Create the site
- Import your copy of the repository into Netlify.
- Leave Base directory empty, so Netlify installs the whole workspace from the repository root.
- Set Package directory to
apps/api. - Set the build command to
pnpm --filter @turborepo-remote-cache/api buildand the publish directory toapps/api/dist. - Add
TURBO_TOKENand the S3 variables as environment variables, then deploy.
Nitro detects Netlify and builds the netlify preset. To make the choice explicit, set NITRO_PRESET to netlify.
The expiry task
The Netlify build doesn’t schedule the expiry task. Call POST /internal/delete-expired-objects once a day from a scheduler you already run. Retention and expiry shows a GitHub Actions workflow that does it.