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

[Feature] [Architecture] Migrate to NextJS for Dynamic On-Demand Page Generation #375

Open
elchris opened this issue Nov 9, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@elchris
Copy link

elchris commented Nov 9, 2020

so it looks like NextJS does indeed support React true server-side rendering, unlike Gatsby:

https://nextjs.org/learn/basics/create-nextjs-app
https://nextjs.org/docs/basic-features/pages#server-side-rendering
https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering

but deploying to their platform gets you a more straightforward deployment pipeline, which I'd otherwise need to replicate on AWS hosting which is .... doable ... and which i could also roll out for the API application itself.

i'm thinking we should replace gatsby + netlify with nextjs + vercel , maybe if we can cut a deal with them or something.

@ThugDebugger also just mentioned to me that Netlify also has native support for NextJS with a small incremental cost to allow server-side rendering, so that might work too?

This should give us all the things we care about:

  • do dynamically-rendered pages on-the-fly for business profile pages, and i would also recommend generating the paginated listing pages server-side as well, because that'll be the most reliable way for google to discover, index and rank them. Those dynamic pages can get their data in real-time from the API, and stream out html to the end-user/search engines --- no more "static site generation" headaches.

  • for things that are dynamic but do not require search engine visibility such as "Developer Portal" and "Owner Portal", we can stick to the simpler model of static single-page React App w/ client-side API interactions authenticated by OpenID Connect

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

No branches or pull requests

5 participants