CLI to change the port visibility doesn't work #64013
Unanswered
dooriya
asked this question in
Codespaces
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
Hi,
We use Codespaces for our getting-started samples (e.g. https://github.com/OfficeDev/TeamsFx-Samples/tree/v3/hello-world-tab-codespaces). And we use the following GitHub CLI to automatically set the port visibility to public in our VSCode task.json:
gh codespace ports visibility 53000:public -c $CODESPACE_NAME
It worked well in the past few months, but recently we found the command doesn't take effect :(.
The port visibility is still private after executing this command, and developers will fail to access the endpoint in as an iframe in Teams.
Currently the workaround is to manually configure the port visibility through VS Code UI. However, this approach is not ideal, as it introduces additional manual steps that we aim to avoid while maintaining a seamless F5 experience.
Beta Was this translation helpful? Give feedback.
All reactions