Skip to content

Commit be5c16d

Browse files
authored
use only site id in list versions API (#6565)
1 parent ede17a1 commit be5c16d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
- Fixed an issue where `--non-interactive` flag is not respected in Firestore indexes deploys. (#6539)
33
- Fixed an issue where `login:use` would not work outside of a Firebase project directory. (#6526)
44
- Prevent app router static `not-found` requiring a Cloud Function in Next.js deployments. (#6558)
5+
- Use only site id from site name in list versions API. (#6565)

src/hosting/runTags.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { posix } from "node:path";
12
import * as run from "../gcp/run";
23
import * as api from "./api";
34
import { FirebaseError } from "../error";
@@ -23,7 +24,9 @@ export async function gcTagsForServices(project: string, services: run.Service[]
2324
// id and number.
2425
const validTagsByServiceByRegion: Record<string, Record<string, Set<string>>> = {};
2526
const sites = await api.listSites(project);
26-
const allVersionsNested = await Promise.all(sites.map((site) => api.listVersions(site.name)));
27+
const allVersionsNested = await Promise.all(
28+
sites.map((site) => api.listVersions(posix.basename(site.name)))
29+
);
2730
const activeVersions = [...flattenArray(allVersionsNested)].filter((version) => {
2831
return version.status === "CREATED" || version.status === "FINALIZED";
2932
});

0 commit comments

Comments
 (0)