- Notifications
You must be signed in to change notification settings - Fork928
feat: Add portforward to the UI#3812
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
A note from#1624:
|
Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com>
@bpmct thanks for bringing it to my attention! |
@bpmct are these "URL interpolations" right?https://github.com/coder/coder/pull/3812/files#diff-5390f341c0bb6b03cb273d6cb97525b6c3f607dc8c5decbc9cfafd2dd7e0d46dR32-R35 |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
const [port, setPort] = useState("3000") | ||
const { location } = window | ||
const urlExample = | ||
process.env.CODER_ENABLE_WILDCARD_APPS === "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This will be compiled by webpack, and isn't a dynamic environment variable at runtime. If we want to have a proper environment variable passed through, it'll have to come via the backend.
Preview:

Blocked by#3753
Closes#3516