Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to turn on/off some features #2

Closed
reel opened this issue Jan 7, 2017 · 1 comment
Closed

Add the ability to turn on/off some features #2

reel opened this issue Jan 7, 2017 · 1 comment
Labels

Comments

@reel
Copy link
Member

reel commented Jan 7, 2017

The main idea is to be able to turn on/off some features with .env or via package.json:

  ...
  "henri" {
    "frontend": false,
    "backend": true,
    "socketio": false,
    "rest": true
  }

Similar options in ,env file or via environment variables:

HENRI_OPTS="frontend=false;backend:true;socketio:false;rest:true"

Defaults to true if missing.

So, if you want to deploy multiple backends without nextjs overhead (?!?) or vice-versa, this can be done easily.

backend: false would disable mostly everything but Next.js

Is this necessary? Are there use cases? cookies would not be parsed and SSR partially broken without data injection...

@reel reel added the ideas label Jan 7, 2017
@reel
Copy link
Member Author

reel commented Feb 10, 2017

If you don't define something in the configuration, it will not load (next, socketio, rest, auth)

@reel reel closed this as completed Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant