Nginx deploy, Uncaught SyntaxError: Unexpected token

Hi, Iam trying to deploy a ember build with Ngnix 1.8

However, I get this error Uncaught SyntaxError: Unexpected token < ember-cli-live-reload.js:1

my Ngnix config

server { listen 80;

server_name mydomain;

index index.html index.htm;

        root /home/havard/dist/;

location / {
    try_files $uri $uri/ /index.html?/$request_uri;
}





location /assets/ {
    # do nothing and let nginx handle this as usual
}


location /static/ {
    # do nothing and let nginx handle this as usual
}

location /css/ {
    # do nothing and let nginx handle this as usual
}


location /fonts/ {
    # do nothing and let nginx handle this as usual
}





}
1 Like

Did you ever figure this out? I’m having the same issue…

Sorry did not see this, It’s because you have started “ember server” after the build. Have to build again

-HĂĄvard