dist/ directory at build time, use the Node.js pack instead. That pack runs the build first; this pack assumes everything’s already built.
When it runs
Two conditions, both required:- There’s an
index.htmlat the repo root or underpublic/index.html. - There’s no
package.jsonat the root.
package.json check is what makes a React app go to the Node pack, not here.
What gets shipped
The entire matching directory is copied. So if you have
index.html, style.css, and images/, they all get served.
Runtime
The Frame’s port should be set to 80 for this pack.
Limits today
- No control over nginx config. Need rewrites, caching headers, or compression? Switch to the Paketo builder, which supports a custom
nginx.confandBP_WEB_SERVERknobs. - No directory listings, no custom 404 pages.
- HTTPS is handled by Nubo at the edge; nginx itself serves plain HTTP inside the container.
