Skip to content
Discussion options

You must be logged in to vote

Recommended workflow

  • Keep assets/.env in the repo as a blank template (safe defaults) so Flutter builds + CI always have the asset present. Do not put real secrets in it.
  • For local dev, edit assets/.env in your working copy with your project’s SUPABASE_URL, SUPABASE_ANON_KEY, and POWERSYNC_URL, and never commit the filled file.
  • If you’re contributing frequently, a good habit is to run git status before every commit and ensure assets/.env is unchanged (or revert it).

Why this repo uses assets/.env

Flutter’s flutter_dotenv loads from an asset bundle, so the file must exist at build time. That’s why we keep a blank placeholder committed.

What scripts/setup.ps1 does

  • Ensures you have Flutter

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
1 participant