ndx-static-routes
ndx-framework apps
provides routes to serve client content forinstall with
npm install --save ndx-static-routes
example
src/server/app.coffee
require ndx-server
.config
database: 'db'
.use 'ndx-static-routes'
.start()
environment variables
ndx-static-routes serves up different content depending on the NODE_ENV
variable
NODE_ENV=production
- dist/app
- public
- dist/index.html
NODE_ENV=dev
(or anything else)
- build/client
- public
- build/client/index.html
- bower