[buildpack] Support running static front-end apps
@william-msft is already working on this.
Since Sep 19, 2023.
- Dominant language
- C#
- Stars
- 881
- Forks
- 195
- Avg merge
- 20h 13m
- Merged PRs (30d)
- 13
Description
Feature Request
It would be great for Oryx / Oryx Buildpacks to support building and running static front-end apps like React.
Current behavior
For static-front end apps like a React application, the app is currently treated as-if it's a general NodeJS application, with the following described behavior:
- For build,
npm run build(correct for React) - For run,
npm run start. (not expected).
What can be done?
npm run build produced a bundled HTML/JS file content ready to be served by any web server. The image should contain a lightweight web server such as nginx to serve the static file content, and the run command is slightly to start the web server to serve the static files. An reference implementation can be found in paketo web-servers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.