App reviews, troubleshooting, and recommendations
I'm trying to migrate my Shopify app (in Next.js) to App Bridge v4.
I place the HTML tags in _document.js and they succesfully load the script. Unfortunately, I can't install the app while the script is present. It displays 404 page.
<meta
name="shopify-api-key"
content={process.env.NEXT_PUBLIC_SHOPIFY_API_KEY}
/>
<script src="https://cdn.shopify.com/shopifycloud/app-bridge.js"></script>
Once I remove the script, I am able to install the app, but of course the auth doesn't work. Once the app is installed and I add the script back, the auth and the app work.
So basicaly the script tag breaks the app Installation part.
We had same issue with Docker when deploying and fix was to add api key directly to content="KEY HERE"
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024