Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: disable native git poller by default — manual builds only

Set NATIVE_POLL_INTERVAL_MS=0 (default) to disable auto-polling.
Builds are triggered manually via POST /native-build with admin key.
Set NATIVE_POLL_INTERVAL_MS=60000 to re-enable polling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+6 -1
+6 -1
oven/native-git-poller.mjs
··· 11 11 import { promises as fs } from "fs"; 12 12 import path from "path"; 13 13 14 - const POLL_INTERVAL_MS = parseInt(process.env.NATIVE_POLL_INTERVAL_MS || "60000", 10); 14 + const POLL_INTERVAL_MS = parseInt(process.env.NATIVE_POLL_INTERVAL_MS || "0", 10); 15 15 const GIT_REPO_DIR = process.env.NATIVE_GIT_DIR || "/opt/oven/native-git"; 16 16 const BRANCH = process.env.NATIVE_GIT_BRANCH || "main"; 17 17 const HASH_FILE = path.join(GIT_REPO_DIR, ".last-built-hash"); ··· 148 148 } 149 149 150 150 // Check that GIT_REPO_DIR exists before starting 151 + if (POLL_INTERVAL_MS <= 0) { 152 + logFn("info", "🛑", "Native git poller disabled (NATIVE_POLL_INTERVAL_MS=0). Use manual POST /native-build to trigger."); 153 + return; 154 + } 155 + 151 156 fs.access(GIT_REPO_DIR) 152 157 .then(() => { 153 158 logFn(