Donk watches your git branch. Switch to feature/payments and the environment profile switches with it. No manual changes.
You're on the main branch with the dev profile active. You switch to feature/payments which needs different environment variables — a Stripe test key, a different database, a webhook URL. Normally you'd switch the env file manually, maybe forget, and spend ten minutes debugging why payments aren't working before realizing you're still on the dev config.
Donk's Git Branch Watcher monitors the active branch in your project's git repository. Map branches to environment profiles — main → dev, staging → staging, feature/* → feature-dev. When you switch branches, Donk switches the profile and hot-reloads the server in about a second.
git checkout or switch branches in VS Codefeature/* matches all feature branchesnpm install, migrations)donk.toml — commit branch-profile mappings to the repoVideo: 25–35 seconds. Git checkout to a different branch → profile auto-switches → server restarts with different env.