diff --git a/CHANGELOG.md b/CHANGELOG.md index 065a1de7870..4259ea12d33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,3 +2,4 @@ - Fixed an issue where `--non-interactive` flag is not respected in Firestore indexes deploys. (#6539) - Fixed an issue where `login:use` would not work outside of a Firebase project directory. (#6526) - Prevent app router static `not-found` requiring a Cloud Function in Next.js deployments. (#6558) +- Use only site id from site name in list versions API. (#6565) diff --git a/src/hosting/runTags.ts b/src/hosting/runTags.ts index 347022a734b..f6d17f3d7cc 100644 --- a/src/hosting/runTags.ts +++ b/src/hosting/runTags.ts @@ -1,3 +1,4 @@ +import { posix } from "node:path"; import * as run from "../gcp/run"; import * as api from "./api"; import { FirebaseError } from "../error"; @@ -23,7 +24,9 @@ export async function gcTagsForServices(project: string, services: run.Service[] // id and number. const validTagsByServiceByRegion: Record>> = {}; const sites = await api.listSites(project); - const allVersionsNested = await Promise.all(sites.map((site) => api.listVersions(site.name))); + const allVersionsNested = await Promise.all( + sites.map((site) => api.listVersions(posix.basename(site.name))) + ); const activeVersions = [...flattenArray(allVersionsNested)].filter((version) => { return version.status === "CREATED" || version.status === "FINALIZED"; });