[Vuejs]-Deploying Vue-Django-graphene on NGINX

0👍

The answer seems to be to create separate locations for each resource which NGINX fails to load. In my case it was adding:

location /dist {
    alias /srv/hub/frontend/dist;
    autoindex    on;
    }

which then presented errors in sourcing the img files used in the Vue application.

thus:

location /img {
    alias    /srv/hub/frontend/dist/img;
}

I highly doubt that’s optimum best practise but it works now and I’m glad I can move on…

Leave a comment