Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"ioredis": "5.3.2",
"isolated-vm": "6.0.1",
"joi": "17.13.4",
"js-yaml": "4.3.0",
"js-yaml": "4.3.1",
"jsonschema": "1.4.0",
"jsonwebtoken": "9.0.2",
"knex": "2.4.2",
Expand Down
5 changes: 4 additions & 1 deletion packages/server/src/api/controllers/static/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ export const serveApp = async (ctx: UserCtx<void, ServeAppResponse>) => {
})
} else {
// just return the app info for jest to assert on
ctx.body = appInfo
ctx.body = {
...appInfo,
clientLibPath: await objectStore.clientLibraryUrl(workspaceId, appInfo.version),
}
}
} catch (error: any) {
let msg = "An unknown error occurred"
Expand Down
7 changes: 6 additions & 1 deletion packages/types/src/api/web/workspace/static.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import type stream from "node:stream"
import type { Workspace } from "../../../documents"

export type ServeAppResponse = string | Workspace
interface ServeAppWorkspaceResponse extends Workspace {
clientLibPath?: string
clientCacheKey?: string
}

export type ServeAppResponse = string | ServeAppWorkspaceResponse

interface BuilderPreview extends Workspace {
builderPreview: boolean
Expand Down
Loading