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?
I work as an Embedded C Engineer. Interested in expanding my knowledge in other areas of software development. Building a collaboration community for devs at https://inspirezone.tech
Hi there!
Do your images load if you run gatsby develop and view the site through localhost:8000?
Which directory have you placed your images? Try placing them under the static/ folder if not there already. And import images into your files using the import 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 blog prosper-blog.netlify.app/blog/rehy...
Website built with Gatsby is static site, it's very easy to deploy.
You can check this link gatsbyjs.com/docs/deploying-and-ho..., and choose one of them.
I use netlify, easy dan free..
I work as an Embedded C Engineer. Interested in expanding my knowledge in other areas of software development. Building a collaboration community for devs at https://inspirezone.tech
A Shared hosting plan. But at the end of the day, when your gatsby website is builded, it's just a simple static website, so you can host it wherever you want.
I work as an Embedded C Engineer. Interested in expanding my knowledge in other areas of software development. Building a collaboration community for devs at https://inspirezone.tech
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?
Hi there!
Do your images load if you run
gatsby developand view the site throughlocalhost:8000?Which directory have you placed your images? Try placing them under the
static/folder if not there already. And import images into your files using theimportstatement. e.g.import my_image from "../static/my_image.pngYou 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 blog prosper-blog.netlify.app/blog/rehy...
Hope it helps
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
I have a dumb question. You say these are free methods to deploy Gatsby websites, yet nothing in AWS is free to my knowledge. How does this work?
AWS has a free tier see here docs.aws.amazon.com/awsaccountbill...
Website built with Gatsby is static site, it's very easy to deploy.
You can check this link gatsbyjs.com/docs/deploying-and-ho..., and choose one of them.
I use netlify, easy dan free..
You should search for "Continuous delivery" or "CI/CD". It will cover all your current and future questions.
I'm deploying mine with netlify, super easy. If you have any questions, don't hesitate !
I have my Gatsby site deployed to Vercel. Here’s why:
jvarness.blog/how-this-site-was-made/
start-creation.be/
Hosted on hostinger with the simple web hosting plan. You just need to upload it to your public folder.
Was it a shared hosting plan or VPS?
A Shared hosting plan. But at the end of the day, when your gatsby website is builded, it's just a simple static website, so you can host it wherever you want.
I see all the great suggestions for static hosting, but do they support WordPress? Apologize if I'm off on my understanding. Thank you!
Interesting question! I had a quick look and found this: netlify.com/with/wordpress/
Not something I've tried myself but hope that helps.
I'll check it out, thanks!