From 4c7b92256407eb644b6d5f72bf29b07718645e67 Mon Sep 17 00:00:00 2001 From: Mars Hall Date: Sat, 20 Aug 2016 13:21:49 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20doc=20general=20purpose=20SPA=20?= =?UTF-8?q?deployment=20(resolves=20#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 0c862642..488a2a97 100644 --- a/README.md +++ b/README.md @@ -132,3 +132,13 @@ This buildpack composes three buildpacks (specified in [`.buildpacks`](.buildpac 3. [`heroku/static` buildpack](https://github.com/heroku/heroku-buildpack-static) * [Nginx](http://nginx.org/en/) web server * handy static website & SPA (single-page app) [customization options](https://github.com/heroku/heroku-buildpack-static#configuration) + + +### General-purpose SPA deployment + +[Some kind feedback](https://github.com/mars/create-react-app-buildpack/issues/2) pointed out that this buildpack is not necessarily specific to `create-react-app`. + +This buildpack can deploy any SPA [single-page app] as long as it meets the following requirements: + +* `npm run build` performs the transpile/bundling +* the file `build/index.html` or [the root specified in `static.json`](#customization) exists at runtime.