-
Notifications
You must be signed in to change notification settings - Fork 794
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev-server): add "ping" route (#5414)
* feat(dev-server): add ping route This commit adds a new `/ping` route to the dev server handler. This route will return a 200 response once the Stencil build has finished. * feat(dev-server): make "ping" route configurable This commit adds an option to the dev server config object as a part of the Stencil config to allow users to change the route for the "ping" response. The user supplied route is validated when validating the dev server config. If the user sets the ping route to `null`, the route will not be registered. * handle failed build * add tests * future-proof ping route default test * add ping route prefix test Co-authored-by: Ryan Waskiewicz <[email protected]> --------- Co-authored-by: Ryan Waskiewicz <[email protected]>
- Loading branch information
1 parent
c879800
commit b279858
Showing
5 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters