Skip to content

Serve from multiple roots#75

Open
NemoStein wants to merge 2 commits into
lukejacksonn:masterfrom
NemoStein:master
Open

Serve from multiple roots#75
NemoStein wants to merge 2 commits into
lukejacksonn:masterfrom
NemoStein:master

Conversation

@NemoStein
Copy link
Copy Markdown

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