@salesforcedevs/docs-components 1.17.0-hack-alpha7 → 1.17.0-hack-alpha8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.17.0-hack-alpha7",
3
+ "version": "1.17.0-hack-alpha8",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -33,6 +33,7 @@ interface ApiCommentResponse {
33
33
 
34
34
  // Local storage key for comments
35
35
  const COMMENTS_STORAGE_KEY = "dsc_comments";
36
+ const API_URL = "https://cx-helper-engine-2-356c8dd6c7cc.herokuapp.com";
36
37
 
37
38
  export default class CommentPopup extends LightningElement {
38
39
  iconSymbol = "chat";
@@ -236,16 +237,13 @@ export default class CommentPopup extends LightningElement {
236
237
 
237
238
  // Try API first, fallback to localStorage
238
239
  try {
239
- const response = await fetch(
240
- "https://cx-helper-engine-1-114ef038858c.herokuapp.com/post-comment",
241
- {
242
- method: "POST",
243
- headers: {
244
- "Content-Type": "application/json"
245
- },
246
- body: JSON.stringify(payload)
247
- }
248
- );
240
+ const response = await fetch(`${API_URL}/post-comment`, {
241
+ method: "POST",
242
+ headers: {
243
+ "Content-Type": "application/json"
244
+ },
245
+ body: JSON.stringify(payload)
246
+ });
249
247
 
250
248
  if (response.ok) {
251
249
  const responseData = await response.json();
@@ -418,7 +416,7 @@ export default class CommentPopup extends LightningElement {
418
416
  console.log("Fetching comments with params:", params.toString());
419
417
 
420
418
  const response = await fetch(
421
- `https://cx-helper-engine-1-114ef038858c.herokuapp.com/get-comments?${params.toString()}`
419
+ `${API_URL}/get-comments?${params.toString()}`
422
420
  );
423
421
 
424
422
  if (response.ok) {