Thank you for reaching out to Microsoft Q & A forum.
In the Microsoft Learn path, the instructions assume you are running the Vite development server directly in Visual Studio Code on your local machine, where it is accessible on localhost
by default. However, when using containers, the server is isolated and not accessible from outside the container. To resolve this, you should add host: true
to your Vite configuration. This setting allows the server to be accessible from your host machine and other devices on the network. Additionally, ensure your container setup exposes the necessary ports, for example, by mapping 3000:3000
in Docker. These adjustments align your containerized environment with the Learn path's requirements, ensuring proper server functionality and accessibility.
Please feel free to contact us if you have any additional questions.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.
Thank you.