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

Support for absolute paths #445

Merged
merged 2 commits into from
Jul 20, 2018
Merged

Support for absolute paths #445

merged 2 commits into from
Jul 20, 2018

Conversation

az0uz
Copy link
Contributor

@az0uz az0uz commented Jul 7, 2018

When trying to use serve for an absolute path like

serve -s /var/www/my-website

the script would fail as it would try to join cwd with the given path, even if the given path is an absolute one.

Resolving the issue by using path.resolve(argument) instead of path.join(cwd, argument)

@leo leo added the minor label Jul 20, 2018
@leo leo changed the title Resolving served directory argument for absolute path Support for absolute paths Jul 20, 2018
@leo leo self-requested a review July 20, 2018 12:17
@leo
Copy link
Contributor

leo commented Jul 20, 2018

Thank you!

@leo leo merged commit 7ea10ed into vercel:master Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants