Your nginx configuration is the problem, you have to put location / after location / otherwise it will catch every route, Digital Ocean wrote a good article about this.
location /