ndx-static-routes

0.0.13 • Public • Published

ndx-static-routes

provides routes to serve client content for ndx-framework apps

install 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

Readme

Keywords

none

Package Sidebar

Install

npm i ndx-static-routes

Weekly Downloads

3

Version

0.0.13

License

MIT

Last publish

Collaborators

  • ndxbxrme