#Nuxt header component disappearing on production vs local

3 messages · Page 1 of 1 (latest)

stoic elk
#

I am new to Nuxt 3 and am experiencing an issue with a header component.

The component works fine on localhost when I run "yarn dev", but when I deploy to production on DigitalOcean, the component disappears upon refreshing the page. I am running production on port 3000 and believe this should be server-side rendering by default.

I am trying to figure out a way to debug this issue locally, but it only occurs on production and not in my development environment. When I run "yarn start" locally, the layout is correct and includes the header component, but it immediately jumps to the content detail page instead of the homepage (it seems like it is redirected for a split second).

Can you provide any suggestions for what I may be doing wrong?

tribal veldt
#

Hey there, maybe I can help.
Can you try doing a local build and preview? so nuxt build and then nuxt preview to see if the issue also persists here.

#

Also, are there any errors in the console on your live page?