Skip to content

[rush-serve-plugin] Allow serving single files - #3669

Merged
Ian Clanton-Thuon (iclanton) merged 2 commits into
microsoft:mainfrom
dmichon-msft:serve-file
Oct 4, 2022
Merged

Ian Clanton-Thuon (iclanton) merged 2 commits into
microsoft:mainfrom
dmichon-msft:serve-file

Conversation

@dmichon-msft

Copy link
Copy Markdown
Contributor

Summary

Extends rush-project-serve.json configuration to allow serving a specific file, not just entire directories.

Details

Use the projectRelativeFile field instead of projectRelativeFolder to serve a file instead of a directory. A primary use case is to configure some entry point page to be served from / (root).

How it was tested

Used a local repository and configured a file to be served from root.

Comment thread rush-plugins/rush-serve-plugin/src/RushProjectServeConfigFile.ts Outdated
Comment thread rush-plugins/rush-serve-plugin/src/RushProjectServeConfigFile.ts Outdated
@iclanton
Ian Clanton-Thuon (iclanton) merged commit 4f0ce88 into microsoft:main Oct 4, 2022
@dmichon-msft
David Michon (dmichon-msft) deleted the serve-file branch October 6, 2022 22:07
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.

2 participants