I now have the backend on a Digital Ocean droplet, accessible at https://api.gonzher.com. Currently, I'm working on uploading the frontend to https://gps.gonzher.com, which will be hosted on Vercel.
However, I encountered an error: https://gps.gonzher.com/api/server 404 (Not Found). Strangely, this error only occurs in production. When I upload the repository to Vercel in development, this error doesn't appear.
I now have the backend on a Digital Ocean droplet, accessible at https://api.gonzher.com. Currently, I'm working on uploading the frontend to https://gps.gonzher.com, which will be hosted on Vercel.
However, I encountered an error:
https://gps.gonzher.com/api/server 404 (Not Found)
. Strangely, this error only occurs in production. When I upload the repository to Vercel in development, this error doesn't appear.Here's a snippet from my
vite.config.file
: