Nuxt js deploy help

Good morning!

I’m looking for some help with a nuxt js app I’m taking over. Right now I’m getting 404 errors for files located in the _nuxt folder. I deployed it exactly how the old developer did. I’m kinda list at the moment.

Paste some logs, errors, or the directory structure of your setup.

Also, did you setup manually or use the nuxt bootstrapper?

Well that is the odd part. I’m not getting any errors from the server other than it can’t find 2 js files. The app was setup by someone else and they left instructions to deploy it with “npm run build”.

A bunch of the packages are outdated and giving me warnings so I don’t think it will be an easy fix. It runs fine locally just not on the aws server.

Maybe delete the files on the server and do a clean rebuild? I’ll get some screenshots in a bit.

Maybe he hardcoded some URL somewhere to localhost? Just a random guess.

What happens when you do a ssh tunnel to the server and enter the website with localhost in place of the public ip? Does it work then?

Essentially this

ssh -L 8080:127.0.0.1:80 user@someip -N

Would make you able to access port 80 on your someip machine with port 8080 on your local one. Pretty helpful sometimes.

Ofc if you do some software as a service thing on aws you may not be able to do that.


Do you get the 2 missing js files thing too when it runs locally?

It works for locally that’s the weird part. The issue is only in the server.

I’ll see if I can ssh in. Thanks for the help!