Closed adam-beck closed 9 years ago
For the server there is this block of code
// Include static assets. Not advised for production app.use(express.static(path.join(__dirname, 'public')));
and I was just wondering why it isn't advised to include the static assets for production.
Node isn't particularly meant for serving up static files, but it can.
It's advised to offload and serve static assets from something like nginx or a CDN.
For the server there is this block of code
and I was just wondering why it isn't advised to include the static assets for production.