You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the proxy serves several TLDs (--tld a.example --tld b.example), portless run sets PORTLESS_URL to the first one, in the proxy's order. There is no way to pick another TLD for one app: PORTLESS_TLD must match the running proxy's list exactly (same order) or run exits.
This matters when e.g. an app derives its auth URL from PORTLESS_URL. Opening the app on the second TLD makes auth requests go cross-origin to the first one, and they fail. Reordering the proxy's TLDs fixes one project but breaks every other project on the same machine that expects the first TLD.
Proposal: let portless run take --tld <tld> (or PORTLESS_PRIMARY_TLD) to choose which configured TLD sets PORTLESS_URL and the main -> URL, while routes keep being registered on every TLD.
portless run --name app --tld b.example next dev
# PORTLESS_URL=https://app.b.example
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
When the proxy serves several TLDs (
--tld a.example --tld b.example),portless runsetsPORTLESS_URLto the first one, in the proxy's order. There is no way to pick another TLD for one app:PORTLESS_TLDmust match the running proxy's list exactly (same order) orrunexits.This matters when e.g. an app derives its auth URL from
PORTLESS_URL. Opening the app on the second TLD makes auth requests go cross-origin to the first one, and they fail. Reordering the proxy's TLDs fixes one project but breaks every other project on the same machine that expects the first TLD.Proposal: let
portless runtake--tld <tld>(orPORTLESS_PRIMARY_TLD) to choose which configured TLD setsPORTLESS_URLand the main -> URL, while routes keep being registered on every TLD.Checked on 0.17.0 and 0.18.1.
All reactions