Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the complete project to Nextjs or any other SSG framework #115

Open
saadpasta opened this issue Jan 10, 2023 · 3 comments
Open

Move the complete project to Nextjs or any other SSG framework #115

saadpasta opened this issue Jan 10, 2023 · 3 comments

Comments

@saadpasta
Copy link
Owner

Summary
Currently, the complete react-blog-github is being rendered client side which results in low performance and no SEO.

My plan is to move the complete project to Static Site Generation in a short move the client side to a static site. We might have problems with rendering real-time comments

I have NextJs in mind with ISR.

We can also move to Gatsby but I am not sure about the support currently I have built two projects next and it's a lot more stable.

What's new?
We will be moving to static sites nothing would change in jsx. The API call to GitHub for GitHub issues and other things might change. This would be a pretty big change and I am not sure how we would do it without affecting our current code. We will keep building a new version of it moving one piece one by one and then when it's done we will make it live.

Motivation
First, static sites are much faster and more performant than client-side rendered applications. This is because the content is pre-rendered and served directly from the server, rather than being generated on the client side. This means that the pages will load much faster for users, which is especially important for a project like developerFolio which may be used by developers for their portfolios.

Second, static sites are more secure than client-side rendered applications. Since the content is pre-rendered, there is no risk of user input being injected into the page and potentially causing security vulnerabilities. This is an important consideration for any open-source project that may have a large user base.

Overall, moving react-blog-github to a static site using Next.js would likely provide numerous benefits for users

@GroovierHen
Copy link

ASTRO 😅

@saadpasta
Copy link
Owner Author

@GroovierHen Welcome 😁

@GroovierHen Would you like to compare Nextjs and Astro and what do you think would be perfect for our usecase. We wanna fetch the issue from the GitHub and also include comments in realtime

@GroovierHen
Copy link

hmm 🤔, we have to check about the real-time comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants