diff --git a/CHANGELOG.md b/CHANGELOG.md index 074bef81184..2d018fea5c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,4 +3,5 @@ - Fix bug in auth emulator in which createdAt was not set for signInWithIdp new users. (#5203) - Default to --no-localhost when calling login from Google Cloud Workstations - Support the x-goog-api-key header in auth emulator. (#5249) +- Fix bug in deploying web frameworks when a predeploy hook was configured in firebase.json (#5199) - Fix bug where function deployments using --only filter sometimes failed deployments. (#5280) diff --git a/src/deploy/lifecycleHooks.ts b/src/deploy/lifecycleHooks.ts index fca96fb3370..0c08e09a8cb 100644 --- a/src/deploy/lifecycleHooks.ts +++ b/src/deploy/lifecycleHooks.ts @@ -48,7 +48,7 @@ function getChildEnvironment(target: string, overallOptions: any, config: any) { let resourceDir; switch (target) { case "hosting": - resourceDir = overallOptions.config.path(config.public); + resourceDir = overallOptions.config.path(config.public ?? config.source); break; case "functions": resourceDir = overallOptions.config.path(config.source);