Skip to content

Fail the deployment check when .env exports a public base URL - #61

Merged
jmjava merged 1 commit into
mainfrom
cursor/fail-export-prefixed-env-url
Nov 1, 2026
Merged

jmjava merged 1 commit into
mainfrom
cursor/fail-export-prefixed-env-url

Conversation

@jmjava

@jmjava jmjava commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • export OLLAMA_BASE_URL=... was stored under the key export OLLAMA_BASE_URL, so the deployment check never saw that URL.
  • It fell back to loopback and passed. The export prefix is now stripped, and a public URL fails base_url.

Test plan

  • export OLLAMA_BASE_URL=http://8.8.8.8:11434 fails the base URL check (it passed before this change)
  • Existing dotenv tests still pass, along with tests.test_safety and tests.test_deployment_safety_ci
  • CI unit and mutation checks green

Made with Cursor

An export prefix hid the key, so the checker kept the loopback default and passed.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jmjava
jmjava merged commit 1170a2d into main Nov 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant