Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(preview): route remote ports through t3 connect #8841

Closedmaria-rckswants to merge 8 commits intomain fromrefs/pull/8841/headopened View on GitHub

Showing 39 changed files with 112 additions and 0 deletions (loading 36).

x
0 of 39 viewed, 39 left
34 additions and 0 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -9,6 +9,7 @@
DesktopPreviewAutomationTypeInputSchema,
DesktopPreviewAutomationWaitForInputSchema,
DesktopPreviewConfigInputSchema,
+ DesktopPreviewGatewayConfigSchema,
DesktopPreviewNavigateInputSchema,
DesktopPreviewRecordingArtifactSchema,
DesktopPreviewRecordingSaveInputSchema,
@@ -229,6 +230,37 @@
}),
});
​
+export const configureGateway = DesktopIpc.makeIpcMethod({
+ channel: IpcChannels.PREVIEW_CONFIGURE_GATEWAY_CHANNEL,
+ payload: DesktopPreviewGatewayConfigSchema,
+ result: Schema.Void,
+ handler: Effect.fn("desktop.ipc.preview.configureGateway")(function* ({
+ environmentId,
+ httpBaseUrl,
+ ticket,
+ port,
+ expiresAtEpochMilliseconds,
+ }) {
+ const manager = yield* PreviewManager.PreviewManager;
+ yield* manager.configureGateway(environmentId, {
+ httpBaseUrl,
+ ticket,
+ port,
+ expiresAtEpochMilliseconds,