partytown icon indicating copy to clipboard operation
partytown copied to clipboard

[🐞] 'lib' config ignored for astro partytown integration

Open gplusdotgr opened this issue 2 years ago • 0 comments

Describe the bug

Our website/app is actually served from a subdirectory and an nginx webserver is responsible to serve assets. Therefore the default vanilla config does not work for us. We need to set the lib option to specify where should the partydown script be saved during the build. So:

  integrations: [
    vue(),
    tailwind(),
    partytown({
      config: {
        debug: true,
        forward: ["dataLayer.push", "fbq", "_hsq.push"],
        lib: "/lala/",
      },
    }),
  ],

image

Reproduction

Steps to reproduce

Browser Info

Chrome

Additional Information

"astro": "^2.6.1",
"@astrojs/partytown": "^1.2.3",

gplusdotgr avatar Jun 16 '23 18:06 gplusdotgr