Complex error with hostin on VPS using Dokploy (dockerfile build)
Issue:
Register / Login, database related functions, not working when using the website on build version on our VPS.
It works fine on localhost, npm run dev, and even if we do run dev on the dokploy with dockerfile.
It stops working when we turn the front and backend in a build and host it like that.
Everything on the website works, buttons and simple functions, but API / data related doesnt anymore.
For example registering on dev, makes it send the data to the database.
Registering on build gives the following error:
POST https://www.dev.afterlife-esports.eu/api/auth/login 405 (Method Not Allowed)
Which is weird right?
Since it fully works on dev / localhost / dev build,
I would really apreciate some help since we are trying to fix this with 4 devs for about 8 hours already,
Hopefully someone here knows how to fix!
Using:
react - vite
Nodejs
.env is setup
doockerfile as well
Also linked in this message:
Afterlife eSports
Afterlife eSports | Professional Gaming Organization
Join Afterlife eSports, a premier European gaming organization competing in top esports titles. Follow our teams, tournaments, and gaming content.
1 Reply
it seems like it could be 2 things, either your backend is not allowing those requests or it has something to do with what you wrote about nginx in the dockerfile