heroku / heroku-buildpack-nginx

Run NGINX in a Heroku app
244 stars 787 forks source link

New "Static preset" for websites & single-page apps #114

Closed mars closed 1 year ago

mars commented 1 year ago

This buildpack was created with a different vision in a very different time, and now it's become useful for hosting single-page apps, such as Ember & Next.

This PR adds a new buildpack "preset": nginx launch command, example nginx config, & documentation, to support static site deployment much like heroku-buildpack-static did.

This PR is fully backward compatible. It should not effect any pre-existing usage, as it contains a new launch command & sample config.

To test it out, see docs for Static preset.

Please, review the heftily revised top-level readme, too.