From 85303344a394ce4910d9d67a11b39e0d5fb76e7e Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Thu, 22 Jun 2023 11:38:36 -0700 Subject: [PATCH] Revert incorrectly included code (#6022) --- src/deploy/hosting/prepare.ts | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/deploy/hosting/prepare.ts b/src/deploy/hosting/prepare.ts index dabb448243e..df55b527330 100644 --- a/src/deploy/hosting/prepare.ts +++ b/src/deploy/hosting/prepare.ts @@ -12,7 +12,6 @@ import * as utils from "../../utils"; import { HostingSource, RunRewrite } from "../../firebaseConfig"; import * as backend from "../functions/backend"; import { ensureTargeted } from "../../functions/ensureTargeted"; -import { normalizeAndValidate } from "../../functions/projectConfig"; function handlePublicDirectoryFlag(options: HostingOptions & Options): void { // Allow the public directory to be overridden by the --public flag @@ -76,20 +75,8 @@ export async function addPinnedFunctionsToOnlyString( if (endpoint) { options.only = ensureTargeted(options.only, endpoint.codebase || "default", endpoint.id); } else { - const functionsConfig = normalizeAndValidate(options.config.src.functions); - const codebasesFromConfig = [ - ...new Set(Object.values(functionsConfig).map((c) => c.codebase)), - ]; - if (codebasesFromConfig.length > 0) { - options.only = ensureTargeted( - options.only, - codebasesFromConfig[0], - r.function.functionId - ); - } else { - // This endpoint is just being added in this push. We don't know what codebase it is. - options.only = ensureTargeted(options.only, r.function.functionId); - } + // This endpoint is just being added in this push. We don't know what codebase it is. + options.only = ensureTargeted(options.only, r.function.functionId); } addedFunctionsPerSite.push(r.function.functionId); }