Deploying Astrojs blog on Netlify, comments blocked
I am trying to deploy an astrojs blog on Netlify but it's blocking the talkyard comments.
Locally it's working.
The console returns:
lockdown-install.js:1 Removing unpermitted intrinsics
lockdown-install.js:1 Removing unpermitted intrinsics
lockdown-install.js:1 Removing unpermitted intrinsics
lockdown-install.js:1 Removing unpermitted intrinsics
talkyard-comments.min.js:10 Talkyard comments: Starting v0.2024.008-327b77491 ... (disable logging by setting talkyardLogLevel = 'warn' or 'info')
Removing unpermitted intrinsics
talkyard-comments.min.js:10 Talkyard comments: Session iframe inited
Removing unpermitted intrinsics
talkyard-comments.min.js:10 Talkyard comments: Editor iframe inited
lockdown-install.js:1 Removing unpermitted intrinsics
talkyard-comments.min.js:10 Talkyard comments: Comments iframe nr 1 inited
talkyard-comments.min.js:10 Talkyard comments: All comment iframes inited.
talkyard-service-worker.min.js:10 SW: Service worker v0.2024.008-327b77491 loading [TyMSWVLDNG]
How can I proceed?
- KajMagnus @KajMagnus2024-10-23 07:51:30.177Z
Hi Vassilis, did you try with
is:inline
?In the chat a while ago, someone asked about AstroJS, and they got it working like so:
the script itself loads, but then there's a 404 trying to load additional stuff [...]
The trick was to adapt the snippet and use<script is:inline>...</script>
with AstroJS.And, from the AstroJS docs:
To prevent Astro from processing a script, add the
is:inline
directive.https://docs.astro.build/en/guides/client-side-scripts/
(Not sure why it works locally though?)
Apparently in some cases the "Removing unpermitted intrinsics" message can be from a Chrome extension, MetaMask: https://stackoverflow.com/questions/76393186/what-is-causing-the-warning-removing-intrinsics-arrayprototype-toreversed-in (do you happen to use it?)
- SComment pending approval, posted 2024-12-13 01:07:28.244Z.