Skip to content

Commit f38ccc7

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/build-logs-command
# Conflicts: # packages/cli/package.json # pnpm-lock.yaml
2 parents 369e08a + 3b9621a commit f38ccc7

8 files changed

Lines changed: 21 additions & 21 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@clack/prompts": "^1.5.0",
4747
"@prisma/compute-sdk": "0.31.0",
4848
"@prisma/credentials-store": "^7.8.0",
49-
"@prisma/management-api-sdk": "^1.45.0",
49+
"@prisma/management-api-sdk": "^1.46.0",
5050
"better-result": "^2.9.2",
5151
"colorette": "^2.0.20",
5252
"commander": "^14.0.3",

packages/cli/src/controllers/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ function toAppDomainSummary(domain: DomainRecord): AppDomainSummary {
22882288
type: domain.type,
22892289
url: domain.url,
22902290
hostname: domain.hostname,
2291-
computeServiceId: domain.computeServiceId,
2291+
appId: domain.appId,
22922292
status: domain.status,
22932293
foundryStatus: domain.foundryStatus,
22942294
failureReason: domain.failureReason,

packages/cli/src/lib/app/app-provider.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export interface DomainRecord {
106106
type: "custom-domain";
107107
url: string;
108108
hostname: string;
109-
computeServiceId: string;
109+
appId: string;
110110
status: DomainStatus;
111111
foundryStatus: string;
112112
failureReason: string | null;
@@ -791,7 +791,7 @@ interface RawDomainRecord {
791791
type: "custom-domain";
792792
url: string;
793793
hostname: string;
794-
computeServiceId: string;
794+
appId: string;
795795
status: DomainStatus;
796796
foundryStatus: string;
797797
failureReason: string | null;
@@ -926,12 +926,12 @@ async function listComputeServices(
926926

927927
async function listComputeServiceDomains(
928928
client: ManagementApiClient,
929-
computeServiceId: string,
929+
appId: string,
930930
signal?: AbortSignal,
931931
): Promise<DomainRecord[]> {
932932
const result = await client.GET("/v1/apps/{appId}/domains", {
933933
params: {
934-
path: { appId: computeServiceId },
934+
path: { appId: appId },
935935
},
936936
signal,
937937
});
@@ -953,7 +953,7 @@ function normalizeDomainRecord(domain: RawDomainRecord): DomainRecord {
953953
type: domain.type,
954954
url: domain.url,
955955
hostname: domain.hostname,
956-
computeServiceId: domain.computeServiceId,
956+
appId: domain.appId,
957957
status: domain.status,
958958
foundryStatus: domain.foundryStatus,
959959
failureReason: domain.failureReason,

packages/cli/src/types/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export interface AppDomainSummary {
191191
type: "custom-domain";
192192
url: string;
193193
hostname: string;
194-
computeServiceId: string;
194+
appId: string;
195195
status: AppDomainStatus;
196196
foundryStatus: string;
197197
failureReason: string | null;

packages/cli/tests/app-controller.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function createDomain(
9191
overrides: Partial<{
9292
id: string;
9393
hostname: string;
94-
computeServiceId: string;
94+
appId: string;
9595
status:
9696
| "pending_dns"
9797
| "verifying"
@@ -116,7 +116,7 @@ function createDomain(
116116
type: "custom-domain" as const,
117117
url: `https://api.prisma.io/v1/domains/${overrides.id ?? "dom_123"}`,
118118
hostname,
119-
computeServiceId: overrides.computeServiceId ?? "app_1",
119+
appId: overrides.appId ?? "app_1",
120120
status: overrides.status ?? "pending_dns",
121121
foundryStatus: overrides.status ?? "pending_dns",
122122
failureReason: overrides.failureReason ?? null,

packages/cli/tests/app-presenter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function createDomain(
2525
type: "custom-domain",
2626
url: "https://api.prisma.io/v1/domains/dom_123",
2727
hostname: "shop.acme.com",
28-
computeServiceId: "app_1",
28+
appId: "app_1",
2929
status: "pending_dns",
3030
foundryStatus: "pending",
3131
failureReason: null,

packages/cli/tests/app-provider.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ describe("preview app provider", () => {
375375
type: "custom-domain",
376376
url: "https://api.prisma.io/v1/domains/dom_123",
377377
hostname: "shop.acme.com",
378-
computeServiceId: "app_1",
378+
appId: "app_1",
379379
status: "active",
380380
foundryStatus: "active",
381381
failureReason: null,
@@ -465,7 +465,7 @@ describe("preview app provider", () => {
465465
type: "custom-domain",
466466
url: "https://api.prisma.io/v1/domains/dom_123",
467467
hostname: "other.acme.com",
468-
computeServiceId: "app_1",
468+
appId: "app_1",
469469
status: "active",
470470
foundryStatus: "active",
471471
failureReason: null,

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)