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

feat: bot detecting + go_router integration for rendering otherwise flutter web #329

Open
JohnGalt1717 opened this issue Oct 31, 2024 · 3 comments
Labels

Comments

@JohnGalt1717
Copy link

Description

Right now Flutter is horrible for SEO because even if you were to use some sort of pre-rendering tool, it is generating canvas. Meanwhile Jaspr provides a great rendering system that is super friendly for SEO.

If Jaspr integrated with standard flutter and provided tooling to take go_router and source generate the same urls for jaspr so that we could share all of the same code, and generate simple versions of all of the routes for the search engine bots, we could have the best of both worlds where the bots got their SEO and everyone else got the rich Flutter client.

If there was a way to create a hybrid project that generated both in the same project and setup the rules so that the auto-rendering occured, this would be the best of all worlds.

Additional Context

The intent here is to provide a side-by-side rendering for each page that you care about from your flutter app that would render using jaspr only for the SEO bots, and every other case would use the Flutter SPA.

@schultek
Copy link
Owner

schultek commented Nov 3, 2024

You can certainly set this up for yourself. Ideally even make a package that does this.

I wouldn't see this as a feature for Jaspr itself though.

@JohnGalt1717
Copy link
Author

Any guidance on how to integrate it with go_router?

@schultek
Copy link
Owner

You would need to define your routes independent of both go_router and jaspr_router. So as your own objects.

Then you can map these to both separately and keep them in sync.

For the crawler detection you would need to setup your own server using shelf or so.

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

No branches or pull requests

2 participants