用vite脚手架打包了一个后台管理界面放在部署到云托管的容器内,nginx配置了端口转发,为什么还是报“Failed to load resource: the server responded with a status of 405 (Method Not Allowed)”和“Failed to load resource: the server responded with a status of 502 (Bad Gateway)”
nginx.conf配置如下:
vite.config.js: