Skip to content

Commit

Permalink
Revert incorrectly included code (#6022)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Jun 22, 2023
1 parent 05c3013 commit 8530334
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/deploy/hosting/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 8530334

Please sign in to comment.