React project hosting #140057
Replies: 12 comments
-
|
I think the issue might be with your method. You can use the Reference link: https://github.com/tschaub/gh-pages |
Beta Was this translation helpful? Give feedback.
-
Honestly I don't prefer github for deploying my React Projects..U can use Netlify for deploying your react project...You can tag me if u need to deploy it...And i will suggest watch a youtube video on how to deploy MERN project using netlify or how to deploy react project using netlify. |
Beta Was this translation helpful? Give feedback.
-
|
I think When you deploy to Github Pages, You need to make sure your homepage in Package.json is set to your Github Repo URL. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
i think your Next.js project with NextUI isn't displaying on GitHub Pages because GitHub Pages doesn’t support server-side rendering (SSR). To fix this, ensure your project is fully exported as static files by adding { output: 'export' } in next.config.js and running npm run export instead of npm run build. Also, check your package.json and set the correct "homepage" path to match your GitHub repository URL. If GitHub Pages still doesn’t work, consider using Hostbet.com.in, Vercel, or Netlify, which provide better support for Next.js deployments. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
GitHub Pages serves static files. If your project isn’t configured to load resources relative to the correct base path, or if routing isn't handled as a static fallback (common in SPAs), it’ll just show a blank page. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
THere are the following steps to host a react app on github pages: 1. Install
|
Beta Was this translation helpful? Give feedback.
-
|
If you're looking for a fast, free, and developer-friendly platform to host your React project, I highly recommend using Vercel. It's perfect for frontend frameworks like React, and it handles deployment, custom domains, and CI/CD out of the box. How to Deploy Your React App on Vercel (Step-by-Step)
|
Beta Was this translation helpful? Give feedback.
-
|
@Salehmoradi2005 if you need any assistance please tell otherwise select any best answer you liked and mark this question answered |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I have React project built with NextUI in my repository
It works perfectly fine while running in react development but after running npm run build and upload it to Github pages it will just displays nothing but a blank web
Do you have any idea about whats wrong
Beta Was this translation helpful? Give feedback.
All reactions