@typed-assistant/builder 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/appProcess.tsx +7 -3
- package/src/setupWebserver.tsx +1 -0
package/package.json
CHANGED
package/src/appProcess.tsx
CHANGED
|
@@ -60,10 +60,10 @@ export async function setupWatcher(
|
|
|
60
60
|
...args: Parameters<typeof buildAndStartAppProcess>
|
|
61
61
|
) {
|
|
62
62
|
const { data: addonInfo, error: addonInfoError } = await getAddonInfo()
|
|
63
|
-
console.log("😅😅😅 ~ addonInfo:", addonInfo)
|
|
64
63
|
if (addonInfoError) {
|
|
65
64
|
log(`🚨 Failed to get addon info: ${addonInfoError}`)
|
|
66
65
|
}
|
|
66
|
+
console.log("😅😅😅 ~ addonInfo:", Object.keys(addonInfo))
|
|
67
67
|
await setupGitSync()
|
|
68
68
|
|
|
69
69
|
let subprocesses = await buildAndStartAppProcess(...args)
|
|
@@ -82,8 +82,12 @@ export async function setupWatcher(
|
|
|
82
82
|
},
|
|
83
83
|
)
|
|
84
84
|
|
|
85
|
+
console.log(
|
|
86
|
+
"😅😅😅 ~ addonInfo?.ingress_entry:",
|
|
87
|
+
addonInfo?.data.ingress_entry,
|
|
88
|
+
)
|
|
85
89
|
startWebappServer({
|
|
86
|
-
basePath: addonInfo?.ingress_entry ?? "",
|
|
90
|
+
basePath: addonInfo?.data.ingress_entry ?? "",
|
|
87
91
|
getSubprocesses: () => subprocesses,
|
|
88
92
|
})
|
|
89
93
|
|
|
@@ -126,6 +130,6 @@ const getAddonInfo = async () => {
|
|
|
126
130
|
log("🔍 Getting addon info...")
|
|
127
131
|
|
|
128
132
|
return withErrorHandling(getSupervisorAPI)<{
|
|
129
|
-
ingress_entry: string
|
|
133
|
+
data: { ingress_entry: string }
|
|
130
134
|
}>("/addons/self/info")
|
|
131
135
|
}
|
package/src/setupWebserver.tsx
CHANGED