Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 4c7b922

Browse files
authored
📚 doc general purpose SPA deployment (resolves #2)
1 parent 37fdba8 commit 4c7b922

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,13 @@ This buildpack composes three buildpacks (specified in [`.buildpacks`](.buildpac
132132
3. [`heroku/static` buildpack](https://github.com/heroku/heroku-buildpack-static)
133133
* [Nginx](http://nginx.org/en/) web server
134134
* handy static website & SPA (single-page app) [customization options](https://github.com/heroku/heroku-buildpack-static#configuration)
135+
136+
137+
### General-purpose SPA deployment
138+
139+
[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`.
140+
141+
This buildpack can deploy any SPA [single-page app] as long as it meets the following requirements:
142+
143+
* `npm run build` performs the transpile/bundling
144+
* the file `build/index.html` or [the root specified in `static.json`](#customization) exists at runtime.

0 commit comments

Comments
 (0)