Support remote workspace service links
This commit is contained in:
@@ -1866,7 +1866,7 @@ export const WorkspaceScriptPayloadSchema = z.object({
|
||||
type: z.enum(["script", "service"]).optional().default("service"),
|
||||
hostname: z.string(),
|
||||
port: z.number().int().positive().nullable(),
|
||||
url: z.string().nullable(),
|
||||
proxyUrl: z.string().nullable().optional().default(null),
|
||||
lifecycle: WorkspaceScriptLifecycleSchema,
|
||||
health: WorkspaceScriptHealthSchema.nullable(),
|
||||
exitCode: z.number().nullable().optional().default(null),
|
||||
|
||||
@@ -139,7 +139,7 @@ describe("workspace message schemas", () => {
|
||||
scriptName: "web",
|
||||
hostname: "web.localhost",
|
||||
port: 3000,
|
||||
url: "http://web.localhost:6767",
|
||||
proxyUrl: "http://web.localhost:6767",
|
||||
lifecycle: "running",
|
||||
health: "healthy",
|
||||
},
|
||||
@@ -158,7 +158,7 @@ describe("workspace message schemas", () => {
|
||||
type: "service",
|
||||
hostname: "web.localhost",
|
||||
port: 3000,
|
||||
url: "http://web.localhost:6767",
|
||||
proxyUrl: "http://web.localhost:6767",
|
||||
lifecycle: "running",
|
||||
health: "healthy",
|
||||
exitCode: null,
|
||||
@@ -205,7 +205,7 @@ describe("workspace message schemas", () => {
|
||||
scriptName: "web",
|
||||
hostname: "web.localhost",
|
||||
port: null,
|
||||
url: null,
|
||||
proxyUrl: null,
|
||||
lifecycle: "stopped",
|
||||
health: null,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user