I'm planning to build a Gatsby based website. I'm new to web dev and its related jargon so I'm still doing research on how this will all come together.
I have a WordPress site I host with Hostinger and need to upgrade my plan to a VPS to be able to host a React-based site. But before I make a decision I wanted to know how others deploy Gatsby sites.
Has anyone used providers that are typically known for hosting CMS based sites for deploying their Gatsby site? Like Hostinger, Namecheap, Bluehost, HostGater, etc..
Or how do you deploy your Gatsby site?
Thanks.
Top comments(16)

I built a site using Gatsby, but when I use the Gatsby Build command my site doesn't work locally. The images and links are broken. I know that you can deploy to Netlify, but my work requires me to send the static files. Maybe I'm omitting something?

- WorkEmbedded C Engineer
- Joined
Hi there!
Do your images load if you rungatsby develop
and view the site throughlocalhost:8000
?
Which directory have you placed your images? Try placing them under thestatic/
folder if not there already. And import images into your files using theimport
statement. e.g.import my_image from "../static/my_image.png

You might be having rehydration error: This occur due to a "mismatch" between the code sent by the server and the code rendered in the browser. I wrote about this in my blogprosper-blog.netlify.app/blog/rehy...
Hope it helps

- LocationLondon, UK
- EducationBachelor Degree Computer Science
- WorkSoftware Developer
- Joined
No need for shared hosting paid plans you can deploy React/Gatsy websites for free. Here are some free top serverless hosts.
Netlify
Vercel
Heroku
Github Pages
Surge
AWS S3

- LocationLondon, UK
- EducationBachelor Degree Computer Science
- WorkSoftware Developer
- Joined
AWS has a free tier see heredocs.aws.amazon.com/awsaccountbill...

- LocationKediri, East Java
- WorkFullstack Developer at own company
- Joined
Website built with Gatsby is static site, it's very easy to deploy.
You can check this linkgatsbyjs.com/docs/deploying-and-ho..., and choose one of them.
I use netlify, easy dan free..

- LocationIstanbul
- Joined
You should search for "Continuous delivery" or "CI/CD". It will cover all your current and future questions.

- EducationEastern Washington University, BS in Computer Science
- WorkStaff Software Engineer at Storable
- Joined
I have my Gatsby site deployed to Vercel. Here’s why:

- LocationTempe, AZ
- WorkUX/UI Engineer at StrongMind
- Joined
I see all the great suggestions for static hosting, but do they support WordPress? Apologize if I'm off on my understanding. Thank you!

- WorkEmbedded C Engineer
- Joined
Interesting question! I had a quick look and found this:netlify.com/with/wordpress/
Not something I've tried myself but hope that helps.

- LocationTempe, AZ
- WorkUX/UI Engineer at StrongMind
- Joined
I'll check it out, thanks!

start-creation.be/
Hosted on hostinger with the simple web hosting plan. You just need to upload it to your public folder.
For further actions, you may consider blocking this person and/orreporting abuse