nuxt-modules / partytown

Partytown integration for Nuxt. Run third-party scripts from a web worker.
MIT License
315 stars 8 forks source link

The plugin doesn't respect the cdnURL config property - it expects the content to be provided from the baseurl #413

Closed MikesGlitch closed 1 month ago

MikesGlitch commented 1 month ago

I have a situation where my CDN sits on a different domain to my website in Dev/Test/Stage envs.

I've set this property in my nuxt file - which is perfect for my use case:

cdnURL: 'mycdnurl'

Partytown doesn't respect that property and serves it from the baseUrl instead (resulting in no SW found).

I need to be able to tell Partytown to look at my CDN instead of the baseUrl.

MikesGlitch commented 1 month ago

Nvm, I think I'm an idiot. I'm assuming it can't use the cdn domain because of a sw l imitation (probs security related)