Can't get access to server/api after deployment

Hello, kind people of nuxt enjoyers! I'm receiving page 404 when I try to make fetch request to any of my routes (server/api/*) in deploy environment. In local environment everything works as it should be. Is there any common issues why it's happening? Sorry for poor English
5 Replies
manniL
manniL3mo ago
I suppose you ran nuxt generate
manniL
manniL3mo ago
Alexander Lichter
YouTube
Nuxt Build or Nuxt Generate?
When creating a Nuxt application, it seems that there are two commands in your package.json to build your application for production: nuxt build and nuxt generate. Some of you might wonder why there are two commands, what the difference of both are and when to use which one? And that's exactly what you'll find out in less than 15 minutes - i...
manniL
manniL3mo ago
If not, Let me know here!
CyberComrade
CyberComradeOP3mo ago
@manniL / TheAlexLichter Thank you very much. Missed the line in docker file. This thread can be closed. Have a fantastic day, Товарищ!
manniL
manniL3mo ago
Likewise! 🙏🏻
Want results from more Discord servers?
Add your server