How to serve static assets directly using Nginx server?

Viewed 125

I appreciate the hard work put in for this wonderful product!

I have setup answer with nginx by reverse proxying to 9080. The setup is working nicely. However, for first time load, the assets (eg. main.aa66.js file) are taking too long to download over the network. I suspect this is because answer is acting as server and serving static assets also.

How to serve static assets, in particular, main.js file and pictures over nginx? I am unable to find a directory containing these assets.

1 Answers

image.png

Js is packaged into a binary file. But the file is not very large.

You can enable Brotli when using nginx.