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 English5 Replies
I suppose you ran nuxt generate
If so, check https://www.youtube.com/watch?v=SiT_1tfuPa4
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...If not, Let me know here!
@manniL / TheAlexLichter Thank you very much. Missed the line in docker file. This thread can be closed. Have a fantastic day, Товарищ!
Likewise! 🙏🏻