How should I manage Supabase dotenv keys locally without committing secrets? #26
Answered
by
NITISH-R-G
NITISH-R-G
asked this question in
Q&A
-
|
I see RoadSOS loads dotenv from What is the intended workflow for:
Also: where should Gemini keys live for the AI triage flow? |
Beta Was this translation helpful? Give feedback.
Answered by
NITISH-R-G
Apr 28, 2026
Replies: 1 comment
-
Recommended workflow
Why this repo uses
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
NITISH-R-G
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recommended workflow
assets/.envin the repo as a blank template (safe defaults) so Flutter builds + CI always have the asset present. Do not put real secrets in it.assets/.envin your working copy with your project’sSUPABASE_URL,SUPABASE_ANON_KEY, andPOWERSYNC_URL, and never commit the filled file.git statusbefore every commit and ensureassets/.envis unchanged (or revert it).Why this repo uses
assets/.envFlutter’s
flutter_dotenvloads from an asset bundle, so the file must exist at build time. That’s why we keep a blank placeholder committed.What
scripts/setup.ps1does