@@ -7,6 +7,7 @@ export interface TunnelConfig {
77 deviceSecret : string ;
88 port : number ;
99 previewPath ?: string ;
10+ telegramMiniAppUrl ?: string ;
1011}
1112
1213const PRIMARY_CONFIG_FILE = "spawndock.dev-tunnel.json" ;
@@ -49,8 +50,10 @@ function normalizeConfig(data: unknown): Partial<TunnelConfig> {
4950 : undefined ;
5051 const previewPath =
5152 typeof record . previewPath === "string" ? record . previewPath : undefined ;
53+ const telegramMiniAppUrl =
54+ typeof record . telegramMiniAppUrl === "string" ? record . telegramMiniAppUrl : undefined ;
5255
53- return { controlPlane, projectSlug, deviceSecret, port, previewPath } ;
56+ return { controlPlane, projectSlug, deviceSecret, port, previewPath, telegramMiniAppUrl } ;
5457}
5558
5659function readConfigFile ( dir : string ) : Partial < TunnelConfig > {
@@ -145,10 +148,11 @@ export function resolveConfig(
145148 const deviceSecret = args . deviceSecret ?? env . deviceSecret ?? file . deviceSecret ;
146149 const port = args . port ?? env . port ?? file . port ?? 3000 ;
147150 const previewPath = file . previewPath ;
151+ const telegramMiniAppUrl = file . telegramMiniAppUrl ;
148152
149153 if ( ! controlPlane ) throw new Error ( "Missing --control-plane or SPAWNDOCK_CONTROL_PLANE" ) ;
150154 if ( ! projectSlug ) throw new Error ( "Missing --project-slug or SPAWNDOCK_PROJECT_SLUG" ) ;
151155 if ( ! deviceSecret ) throw new Error ( "Missing --device-secret or SPAWNDOCK_DEVICE_SECRET" ) ;
152156
153- return { controlPlane, projectSlug, deviceSecret, port, previewPath } ;
157+ return { controlPlane, projectSlug, deviceSecret, port, previewPath, telegramMiniAppUrl } ;
154158}
0 commit comments