-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: app dev
should update URLs and respect paths
#4219
Comments
Right after opening this issue, I've search through the code to see if I could easily add this feature myself. Of course, I stumbled upon this code: cli/packages/app/src/cli/services/dev/urls.ts Lines 145 to 165 in 54b1a9b
which seems to refer to the Is is possible to get the same for By the way, I would be willing to submit a PR for this feature :-) |
Hi! Thanks for the suggestion, I think it makes sense. @nickwesselman what do you think? |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
@nickwesselman sorry to ping you. Do you think this feature would be possible? |
Hi @zirkelc -- Sorry for the delayed reply. I dug into the logic here a bit and confirmed that this is actually already possible in the
Then when I run
Does this solve your need? |
Yes, but I would like the same behavior for
Then
|
Sorry sorry, failure to read. Let me confirm with the team that this would not be in conflict with any other plans around the app URL in our roadmap. |
Hi @zirkelc -- We are open to the feature but before accepting a PR for this, the team raised a couple additional questions we'd need to answer --
|
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
Is there any naming conventions when using multiple
I have no experience with UI extensions, so not really sure what you meant with that. If you can elaborate in more detail, I can verify this. |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
not stale |
What area(s) will this request affect?
App, Running your code locally
What type of change do you want to see?
New feature
Overview
When
shopify app dev
runs, it creates a tunnel via Cloudfare and updates the app URLs in Partners Dashboard.The URLs have the following format:
where the subdomain
trash-shopping-health-inspection
is a random string that changes on everyapp dev
.I would like to suggest to make it possible to configure the paths of each URL. For example, instead of
/auth/callback
it should be possible to use/app/auth/callback
or any other paths. Right now it's always/
for theapplication_url
and/auth/callback
,/auth/shopify/callback
and/api/auth/callback
forredirect_urls
.It would be nice if there were two CLI options like
--app-url-path=/apps
or--redirect-url-path=/app/auth/callback
to override the default values.Another option would be, if the CLI updates only the hostname
trash-shopping-health-inspection.trycloudflare.com
of each URL and doesn't update the paths.Motivation
I have to work with multiple apps (custom and public apps) on the same backend. In order to re-use the same infrastructure, I have to distinguish the different apps by their ID. I do that by simply adding
/apps/<app-id>
as prefix to all app URLs.These two URLs would go through the same Remix backend and the right config is loaded depending on the
<app-id>
.The static URL paths from the CLI make it very hard to make
app dev
work.The text was updated successfully, but these errors were encountered: