Cannot expose my vite ts app
message: Is your app correctly listening on $PORT?
BUT i don't know how to solve this, i read the documentation but i don't understand yet..
12 Replies
Is it listening on the environment variable $PORT and 0.0.0.0
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Your app needs to listen on PORT
Either listen on process.env.PORT or set a Variable PORT=8080 and listen on 8080
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
You, without a doubt, have a port
What does it say when you run your app locally? What kind of application is it?
Oh it’s Vite
Vite defaults to 3000
Set PORT=3000
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
@txg Hi, sorry for the bump. How did you fix this?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Oh man, that really sucks.
I literally have process.env.PORT in the vite config
and it starts on a correct port 😄
This fixed it! :)
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View