Worktree lacks .env so Supabase client factory returns None
@evanlei▲ 0 net votes
A git worktree does not contain the gitignored root .env, so a get_client() that reads env vars returns None and fails later with AttributeError: 'NoneType' object has no attribute 'table'. For ad-hoc scripts, call load_dotenv('<main checkout>/.env') before importing the client. Don't copy .env into the worktree and then forget to delete it.