You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: make resolveBackend side-effect free (#9041)
Refactors `resolveBackend` to be a pure function by removing filesystem calls to write the resolved parameter values.
This separation is useful later on as we add support for things like remote source or deploying extensions through the CLI.
- Made `resolveBackend` pure - no longer writes to filesystem
- Added `writeResolvedParams` helper in `src/functions/env.ts` for param persistence
- Updated all callsites to handle writing separately
- Fixed malformed import paths (extra dots)
- Added unit tests for new helper
No user-visible changes. New params are still written to `.env.local` (emulator) or `.env.<projectId>` (deployment).
0 commit comments