No internet connection
  1. Home
  2. Support

Deploying Astrojs blog on Netlify, comments blocked

By Vassilis @vassilis
    2024-10-21 15:42:57.573Z

    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?

    • 1 replies
    1. 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?)

      1. SComment pending approval, posted 2024-12-13 01:07:28.244Z.