0👍
Turns out the rules defined in vite.config.ts
did not apply for production mode so I had to rewrite them in the nginx.conf
file like below
events {
}
http {
include mime.types;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location /auth/login-user {
proxy_pass http://back-end:8081/backend/auth/user/login;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /user/create-user {
proxy_pass http://back-end:8081/backend/auth/user/create;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}
- [Vuejs]-How to get Vite, TS, and Vue to properly work in vs-code
- [Vuejs]-VUE 3 not rendering template defined in the custom component, no errors in the console
Source:stackexchange.com