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

Use Astro Server Side Rendering #859

Open
xandervedder opened this issue Aug 16, 2024 · 1 comment
Open

Use Astro Server Side Rendering #859

xandervedder opened this issue Aug 16, 2024 · 1 comment
Labels
area: backend Everything that has to do with the backend of the dashboard area: frontend Everything that has to do with the frontend of the dashboard

Comments

@xandervedder
Copy link
Collaborator

No description provided.

@xandervedder xandervedder added area: frontend Everything that has to do with the frontend of the dashboard area: backend Everything that has to do with the backend of the dashboard labels Aug 16, 2024
@hugo-vrijswijk
Copy link
Member

hugo-vrijswijk commented Aug 16, 2024

I had the idea of using Astro to pre-render as much content as possible (like the entire homepage), and keep using Lit for any dynamic content. The biggest advantage of this is speed (and search engine indexing). Users that go to the homepage will only get a small static page, instead of the entire JS bundle for the SPA. Other pages will also see a speed increase and bundle decrease as more content is statically rendered.

Xander mentioned something important I had missed, which is that the repositories page has a slug for the route. Because of this we can't do fully static Astro rendering, but this can be solved by using Astro server-side rendering.

With this, most content and pages will still be statically rendered (with interactive elements), and the repositories page will have some server-side rendering to create the page dynamically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Everything that has to do with the backend of the dashboard area: frontend Everything that has to do with the frontend of the dashboard
Projects
Status: Backlog
Development

No branches or pull requests

2 participants