I'm trying to upload my file to Heroku and need to include the PORT specification. All my other projects have had an index.js file whereas this is just html, js, and css so I"m using "live-server" and my script looks like this
"scripts": {
"devserver": "live-server"
},
but I want this
"scripts": {
"devserver": "live-server --port=process.env.PORT"
},
Any idea? Because I have to put npm run devserver in the Procfile but I need to make sure the whole thing accounts and implements the environment variable for Heroku.