@learnpack/learnpack 5.0.343 → 5.0.344

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.
@@ -181,8 +181,7 @@ const FileUploader: React.FC<FileUploaderProps> = ({
181
181
 
182
182
  const webhookUrl = `${
183
183
  DEV_MODE
184
- ? "https://1gm40gnb-3000.use2.devtunnels.ms"
185
- // : "https://1gm40gnb-3000.use2.devtunnels.ms"
184
+ ? process.env.HOST || "https://1gm40gnb-3000.use2.devtunnels.ms"
186
185
  : window.location.origin
187
186
  }/notifications/${resultId}`
188
187
  formData.append("webhook_callback_url", webhookUrl)
@@ -18,9 +18,8 @@ export const publicInteractiveCreation = async (
18
18
  const randomUID = randomUUID(15);
19
19
  const webhookUrl = `${
20
20
  DEV_MODE
21
- ? "https://1gm40gnb-3000.use2.devtunnels.ms"
21
+ ? process.env.HOST || "https://1gm40gnb-3000.use2.devtunnels.ms"
22
22
  : window.location.origin
23
- // : "https://1gm40gnb-3000.use2.devtunnels.ms"
24
23
  }/notifications/${randomUID}`;
25
24
 
26
25
  console.log("WEBHOOK URL to send to Rigo", webhookUrl);