Subscribe to our list to receive the latest updates on Node on Fire

Class: Static

Static

new Static(app)

Convenience module to route requests to static folders.

- Makes the public folder .. public. All files in public will be accessible.

In production, you should not use this module. But rather, let something like nginx or a CDN handle your static assets. Compiling scripts at runtime in production is also something you should avoid.

Parameters:
Name Type Description
app App

The app.

Do you have any questions or comments on this page? Start a discussion below.

comments powered by Disqus
Subscribe to our list to receive the latest updates on Node on Fire