Set public build settings
lavela.set_build_varsStore PUBLIC build settings: the values a web frontend's bundler bakes into the JavaScript every visitor downloads (e.g. Supabase URL, anon key). Names must start with a framework public prefix (NEXT_PUBLIC_, VITE_, REACT_APP_, EXPO_PUBLIC_, NUXT_PUBLIC_, GATSBY_, VUE_APP_, NG_APP_, PUBLIC_). A service_role key, Stripe secret key, database URL, password or any token is NOT public: it goes to lavela.set_compute_secret, and a whole local .env goes through lavela.env_link (never read its values yourself; secrets in chat only if env_link has no secure route); a secret-looking name or value is refused. Stored: nothing restarts, nothing is billed; the NEXT build uses them, so call lavela.compute_rebuild after (confirm first: it replaces the running server). vars sets, unset removes; with neither, the current set comes back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | No | PUBLIC name → value, e.g. {"VITE_SUPABASE_URL":"https://…"}. | |
| unset | No | Names to remove. | |
| service | No | Which service (default "web"). | |
| projectId | Yes |