How to Fetch App Url from Shopify Partner

Topic summary

A developer needs to dynamically fetch their Shopify app URL from the Partner account to use within Liquid files. The current approach of hardcoding the URL from shopify.app.toml is unsustainable because the URL changes with each deployment.

Proposed Solutions:

  • Use ngrok tunnel to maintain a consistent development URL and prevent changes on each deploy
  • Create a proxy request to access process.env.SHOPIFY_APP_URL environment variable

Status: The discussion remains open with no definitive solution confirmed. The developer specifically seeks a method to fetch the URL programmatically without hardcoding, but hasn’t yet validated whether the suggested proxy approach meets their requirements.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hi Team,

Can anyone suggest how to fetch the App URL from the Shopify Partner account in a Shopify Remix app? I need to use the App URL inside a Liquid file.

Currently, for development purposes, I’ve hardcoded the App URL from the shopify.app.toml file. However, since the App URL changes each time we run the deploy command, hardcoding it is not a sustainable solution.

Could anyone advise on how to programmatically fetch the App URL from the Shopify Partner account and use it within a Liquid file?

Hi @Jubins

let try with ngrok tunnel to prevent each time deploy app url change: https://shopify.dev/docs/apps/build/cli-for-apps/networking-options#bring-your-own-tunnel

1 Like

Hi @BiDeal-Discount

Thanks for your reply. I’m looking for a solution to fetch the App URL in a Liquid file without hardcoding it anywhere.

try to write a proxy request to get process.env.SHOPIFY_APP_URL