To create a new instance of createApp from App Bridge we need the host, which according to the documentation:
"The host is provided as a URL query parameter appended to your application URL when your app is loaded inside the Shopify admin."
But when I load the app absolutely no parameters are there in the URL. The only place I see that parameter is the sharable link that is shown in the terminal when I run "npm run dev".
How should I get and store the host then ?
Did you ever figure out how to get around this? I'm running into a similar issue where I'm missing the host query param on my production deploys. Using "npm run dev" in my development environment works and runs as expected.
Dive into the world of Print-on-Demand and discover how it can transform your online busin...By Imogen Feb 19, 2024
Discover how to transform your online store into a delightful shopping destination. Learn ...By Ollie Feb 13, 2024