bunfig preloads scripts/preload-env.ts which loaded dw .env.local files BEFORE pw could rename them, so pw inherited the dev DB URL and dev.ts auto-set EMULATE_GOOGLE_URL. The previous stash-rename approach raced the preload and lost. Now: preload-env.ts honours PW_MODE=1 and skips .env.local loading; pw sets EMULATE_GOOGLE_URL='' so dev.ts's ?? fallback can't reinstate emulate; the stash dance is gone. A 'bun pw restore' command remains for one-time cleanup of pre-fix .pw-stash files.
1.0 KiB
1.0 KiB