I already have a Node.js/Express project running on Replit, but I am struggling with the setup for Shopify integration. The app builds fine, but inside Shopify admin it only shows as a static frame (like an image) and JavaScript does not run.
Here are the issues I am facing:
-
HTTPS setup → I set
HTTPS=truein.env, but I am not sure if additional SSL configuration is required on Replit. -
Port binding → I want to confirm the correct way to use
process.env.PORTso the app binds to Replit’s assigned port. -
Content-Security-Policy (CSP) → Shopify requires
frame-ancestors ``https://admin.shopify.com`` https://*.myshopify.com, but I am not sure how to properly add my Replit public URL to CSP headers. -
NGINX config → On VDS I used NGINX, but on Replit I assume it’s not needed. Should I remove it completely?
My goal: Run the app fully on Replit with HTTPS enabled and make it load correctly inside Shopify iframe.
If anyone has experience with Shopify apps on Replit, I would really appreciate guidance on the correct .env setup, CSP headers, and whether NGINX is required or not.
Thanks in advance!
Kasım