I'm trying to not spend money on hosting for a react app and I found this package:
- gh-pages: Publish files to a gh-pages branch on GitHub (or any other branch anywhere else)
By adding this script you can build and push the code directly to gh-pages
and publish your app in seconds:
"scripts": {
"deploy": "gh-pages -d build"
}
Do you think is a bad idea to use Github pages as production?
Top comments (3)
It also depends on where in "production" phase you are with your app. Is this something that is close to an MVP or some kind of start up product that you are testing and have lett than few hundreds of users / customers, I would say it is ok. But if this is some kind of enterprise product you are building I would suggest to think twice.
I'm using app.netlify.com/ to hosting react apps.
I think that just to test is fine but for production do not.