Skip to content
Advertisement

Nuxt app failed heroku deployement code=H10 error

I’m trying to deploy my ecommerce nuxt app to heroku. Here’s exactly what I did

JavaScript

then

JavaScript

I followed exactly what the heroku website did list. Everything works

JavaScript

Once I visit the link, however, I get an error:

enter image description here

After following the heroku tail command, the app keeps crashing with the following error

JavaScript

Now i know that this problem has already been solved with this command in my nuxt config app

JavaScript

I did add the process.env.port command but I’m still getting this error.

my nuxt config file

JavaScript

my package.json file

JavaScript

Advertisement

Answer

Remove heroku config:set HOST=0.0.0.0 -a myapplok

because your nuxt app runs in configured to run on localhost

Advertisement