NutsNews Worker Local AI Lock
Section titled “NutsNews Worker Local AI Lock”The public web repo does not deploy the ingestion Workers. Worker shard deployment
lives in ramideltoro/nutsnews-worker.
The Worker repo now has a local-AI deployment lock so shards cannot accidentally deploy as OpenAI-first workers. The lock requires:
AI_PROVIDER=localLOCAL_AI_URLset to the home-server or Cloudflare Tunnel local AI endpointLOCAL_AI_API_KEYbound from Cloudflare Secrets StoreAI_PROVIDER_FALLBACK_TO_OPENAI=falseAI_REVIEW_CONCURRENCY=1
Why this matters for the web app
Section titled “Why this matters for the web app”The website displays articles that Workers review, summarize, translate, and publish. If Worker shards fall back to OpenAI, the web app still works, but OpenAI usage and cost increase and the local server is no longer the source of AI decisions.
Where to verify
Section titled “Where to verify”Use the Worker repo docs:
docs/LOCAL_AI_DEPLOYMENT_LOCK.mddocs/HOME_SERVER_LOCAL_AI.mdscripts/assert_worker_local_ai_lock.mjsscripts/worker_offline_e2e_regression.mjs
Post-deploy web check
Section titled “Post-deploy web check”After the Worker preview/production check looks good, verify the website still renders fresh stories:
curl -I https://nutsnews.com/api/articles?limit=5curl https://nutsnews.com/api/articles?limit=5Look for a normal 200 response and article JSON. The AI provider is verified
from the Worker response and admin telemetry, not from the public article API.
