mars/create-react-app-buildpack

Add support for Heroku-20

edmorley opened this issue · 2 comments

Hi! Since this is a popular buildpack, it would be great to add support for the upcoming Heroku-20 stack.

The Nodejs buildpack already supports Heroku-20, so I believe the only piece left is heroku-buildpack-static, for which there is this ticket open:
heroku/heroku-buildpack-static#166

Fixing this will mean also needing to fix:
heroku/heroku-buildpack-static#165

Fixed by heroku/heroku-buildpack-static/pull/182.

Example CRA build:

$ npx create-react-app cra-test && cd $_
...
$ h create --stack heroku-20 --buildpack https://github.com/mars/create-react-app-buildpack
...
$ git push heroku main
...
remote: Building source:
remote:
remote: -----> React.js (create-react-app) multi app detected
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
remote: =====> Detected Framework: Multipack
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
remote: =====> Detected Framework: Node.js
...
remote: =====> Downloading Buildpack: https://github.com/mars/create-react-app-inner-buildpack.git#v9.0.0
remote: =====> Detected Framework: React.js (create-react-app)
remote:        Writing `static.json` to support create-react-app
remote:        Enabling runtime environment variables
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-static.git
remote: =====> Detected Framework: Static HTML
remote: -----> Installed nginx 1.19.0 to /app/bin
remote: Using release configuration from last framework (Static HTML).
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> web
remote:
remote: -----> Compressing...
remote:        Done: 63M
remote: -----> Launching...
remote:        Released v3