I'm trying to figure out how to load static files .
I added to /etc/nginx/conf.d/default.conf the following lines:
server {
location / {
root /home/marco/webMatters/vueMatters/ggc/src/components/auth/weights;
}
}
But I'm still getting this error: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
which, according to the people intervened in the github issue, should be related to a mis-configuration in the web-server for static files serving: https://github.com/justadudewhohacks/face-api.js/issues/598#issuecomment-626346393
How to solve the problem?
Looking forward to your kind help.
Marco