Skip to content

Conversation

@hdgarrood
Copy link
Collaborator

No description provided.

}

location /output {
alias /var/www/trypurescript/staging/.psci_modules/node_modules;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a concern that this also potentially serves very large externs? Is it possible to glob only js files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably not a bad idea. I think it should be possible, I'll play around with it a bit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is pretty straightforward. There's even an example in the docs which covers pretty much this exact use case: http://nginx.org/en/docs/http/ngx_http_core_module.html#location

@hdgarrood hdgarrood merged commit 545b037 into master May 2, 2020
@hdgarrood hdgarrood deleted the serve-output-directory branch May 2, 2020 18:31
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.

4 participants