Preview not working, infinite loop

Hello,

IDX is not getting the port that it is set to. It is probably my fault, but there is no guide on setting up live preview.
What are the steps taked to get it working?

My config was modified like this:
image

And the Output looks like this:

1 Like

if I’m not mistaken, the web preview is expecting another port (probably 9000) and that is why it keeps loading infinitely.

Try to command = ["npm" "run" "dev" "--" "--port" "$PORT" "--host" "0.0.0.0"];. The PORT in command overrides the PORT that you defined in the environment.

1 Like

Thank you very much! This worked. ˋ–host 0.0.0.0ˋ or the two extra ˋ–ˋ were the last step to get it to work since i already tried the --port.

1 Like

Thankyou so much @alice