Skip to main content

js and css are not applied to html as static files of nestjs backend solution on nginx server (localhost works correctly)

Hello dear dev community.

i would appraciate your help with complex issue related to static content (html, css, js) and nginx configuration.

I have backend solution with nestjs framework that returns to frontend some static content (html, css, js).

When I launch it locally localhost works correctly.

But after deploy to server with nginx configuration I faced with issue:

css styles and js scripts are not applied to html.

Could you please advise what would be the possible fixes of this issue.

enter image description here

Via Active questions tagged javascript - Stack Overflow https://ift.tt/wQKps2r

Comments