Answer the question
In order to leave comments, you need to log in
How to serve JS in Vue using Nginx?
Good afternoon.
Deploying a project with Vue.
Everything seems to be fine, everything is loading, but when it comes to requests to the server, this error comes up:
We're sorry but project doesn't work properly without JavaScript enabled. Please enable it to continue.
server {
listen 59081;
server_name localhost;
root /home/user/proj/app/dist;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html;
}
error_log /var/log/nginx/proj-error.log;
access_log /var/log/nginx/proj-access.log;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question