Disclaimer: I am not sure how important this issue is 😅
Problem
Currently, in the packages/utils/renderer/services/embed.ts the script src is constant that is, /js/iframe-resizer.js which do not work if NEXT_PUBLIC_BASE_URL is defined.
Potential Solution
Make the script.src dynamic with NEXT_PUBLIC_BASE_URL
constBASE_URL=process.env.NEXT_PUBLIC_BASE_URL||'';script.src=BASE_URL=='' ? `/js/iframe-resizer.js` : `${BASE_URL}/js/iframe-resizer.js`;
Disclaimer: I am not sure how important this issue is 😅
Problem
Currently, in the
packages/utils/renderer/services/embed.tsthe script src is constant that is,/js/iframe-resizer.jswhich do not work ifNEXT_PUBLIC_BASE_URLis defined.Potential Solution
Make the
script.srcdynamic withNEXT_PUBLIC_BASE_URL