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

Serve from multiple roots #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NemoStein
Copy link

This PR addresses the issue #74

It adds a new CLI argument --extern path (or --extern=path) that can be repeated to serve content from multiple roots.

$ cd ~/project-root
$ servor ./static --extern ./src --extern ./libs

It also adds the property extern of type string[] to the config object.

import servor from 'servor';

servor({
  /* ... */
  extern: [
    './src',
    './libs'
  ]
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant