partytown icon indicating copy to clipboard operation
partytown copied to clipboard

[🐞] How to setup correctly partytown for astro.js

Open Lodo4ka opened this issue 1 year ago • 2 comments

Describe the bug

Hello, I have partytown not working in my astro.js project. I try to run it from the official integration and it doesn't work https://docs.astro.build/en/guides/integrations-guide/partytown/

All the time I get an error in the service worker file ~partytown/partytown-sandbox-sw.html

Even if I add html partytown-sandbox-sw.html then I get debug/proxytown 404 error.

Can you tell me how to configure partytown correctly?

Translated with DeepL.com (free version)

Reproduction

https://renan-refrigeracao-hazel.vercel.app/#inicio

Steps to reproduce

my configuration for astro

partytown({ config: { forward: ['dataLayer.push', 'fbq', 'ym'], lib: '/blog/', debug: false }, }),

Browser Info

chrome

Additional Information

No response

Lodo4ka avatar Jun 21 '24 15:06 Lodo4ka

I have the same issue in my Astro config using Cloudflare Adapter

lassespilling avatar Aug 08 '24 11:08 lassespilling

Did you ever figure this out?

datapolitical avatar Oct 10 '24 09:10 datapolitical