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

SSR streaming HTML, for SEO? #26

Open
redbar0n opened this issue Oct 30, 2023 · 3 comments
Open

SSR streaming HTML, for SEO? #26

redbar0n opened this issue Oct 30, 2023 · 3 comments

Comments

@redbar0n
Copy link

redbar0n commented Oct 30, 2023

Any chance you'd want to update this example with SSR and streaming HTML?

So it will work well for regular sites that want SEO?

Currently Google's cached version of the page is empty (as it is a pure SPA): http://webcache.googleusercontent.com/search?q=cache:https://quotes.juffalow.com/

The other people who've done something towards this end, is:

@redbar0n redbar0n changed the title SSR streaming HTML SSR streaming HTML? Oct 30, 2023
@redbar0n redbar0n changed the title SSR streaming HTML? SSR streaming HTML, for SEO? Oct 30, 2023
@juffalow
Copy link
Owner

I have one ongoing project with Next.js so maybe I can try to use it also here 🤔

@redbar0n
Copy link
Author

Yeah, but I think NextJS only partially supports Relay. https://vike.dev/nextjs-comparison

That’s why a lot of people using Relay have been using Vite + Vike which should have a more straightforward integration (and you’d have more control): https://vike.dev/relay

@redbar0n
Copy link
Author

FWIW, I found that tobias-tengler recently made nextjs-relay-streaming-ssr which uses Next.js 14 App Router (and even React 18 streaming SSR). It has a pretty solid explanation on how it works.

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