• Aryan Noshirvnai's avatar
    Revert committing .env files - bake the correct default into code instead · d53c3623
    Aryan Noshirvnai authored
    Committing .env/.env.development/.env.production (previous commit) fixed
    the immediate symptom (fresh checkout had no working config) but broke a
    convention that exists for good reason: gitignoring .env means nobody has
    to judge whether a given line is sensitive before adding it. "Nothing in
    here is sensitive right now" is true but fragile - it only holds until
    someone adds a real secret to that file later without remembering the
    convention was bent for it.
    
    The actual problem was "a missing env override silently breaks the app
    with no error," not "the file isn't committed." Fixed properly: client.ts
    now defaults VITE_API_BASE_URL to '/api' (the same-origin proxy path both
    `vite dev` and `vite preview` already serve this app through) instead of
    requiring an env file to supply it - matching the pattern vite.config.ts
    already used for BACKEND_PROXY_TARGET. A fresh checkout now works
    correctly with zero env files at all, verified by rebuilding with none
    present and confirming '/api' is still what's baked into the bundle.
    
    .env/.env.development/.env.production deleted and re-gitignored;
    .env.example is back to being a pure template, documenting when you'd
    actually need to override either default (a different deployment
    topology), not real values to copy.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    d53c3623
Name
Last commit
Last update
..
api Loading commit data...
assets Loading commit data...
components Loading commit data...
context Loading commit data...
hooks Loading commit data...
lib Loading commit data...
pages Loading commit data...
test Loading commit data...
App.tsx Loading commit data...
index.css Loading commit data...
main.tsx Loading commit data...