Environment variables and cron jobs
Give your project's code its settings and secrets, and run paths on a schedule.
On this page
Environment variables
Environment variables reach the code your project runs: builds and functions. A change takes effect from the next version: Perafly hands them to the hosting provider right before each deployment. The live version keeps the values it was built with.
The CLI reads values from stdin or a hidden prompt, never from arguments, and never prints them. Leading and trailing spaces are kept; from a pipe only the final newline is dropped.
System variables
Perafly sets these for every project with an account. They show up in the list and can't be changed.
Cron jobs
List the paths to call and when in perafly.jsonc. The live version's list is the project's schedule; the project's Settings page shows it. At most 40 jobs; path starts with / and schedule is a five-field cron expression.
Each call carries Authorization: Bearer <CRON_SECRET>. Check it so nobody else can trigger the path: