Using Partytown with Shopify App Extension Scripts #612
Unanswered
bennobuilder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm exploring the possibility of using Partytown to load scripts for Shopify app extensions. As far as I know, this isn't feasible due to Partytown's requirement for library files to be hosted on the same origin as the webpage (see
lib
config). Shopify app extensions are served from Shopify's CDN (https://cdn.shopify.com/
), which differs from the store's origin (https://bennos-dev-store.myshopify.com/
).I attempted to configure the Partytown library path in a Shopify app extension, but the differing origins seem to violate Partytown's requirements:
With this setup, Partytown tries to load the scripts from the origin:
although they are only available at the Shopify CDN:
Since the Partytown main script is also served from the Shopify CDN, is it somehow possible to make Partytown work in this environment?
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions