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] Development server that includes SSR. (Roadblocked 🛑) #1111

Closed
arpowers opened this issue Nov 19, 2020 · 1 comment
Closed

[SSR] Development server that includes SSR. (Roadblocked 🛑) #1111

arpowers opened this issue Nov 19, 2020 · 1 comment

Comments

@arpowers
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I am attempting to create a server-side rendered development server using Vite. Most everything is working except for one challenging issue.

When rendering HTML on the server, we need to use files generated by ssrBuild however this build takes around 20 seconds in my case and it prevents "live" development since each change would require a full run of ssrBuild (plus server restart)

Describe the solution you'd like
It should be possible to run ssrBuild with an incremental "watch" that regenerates the needed modules into the server "dist" folder. At least there should be a way to make this pluggable.

Describe alternatives you've considered
I looked at available way to create an ssrBuild that updates based on changes.

Additional context

SSR is a super important feature for enterprise applications and even applications like blogs, forums, etc... NOT for performance reasons, but rendered source and meta handling is very important for syndication and SEO.

In development, we need to validate hydration and insure proper fetching of data needed for rendering; therefore, using client side only in dev is a less than idea option (ultimately unworkable for big-boy apps)

@yyx990803 please give me some feedback, i know you're busy.

@underfin
Copy link
Member

underfin commented Nov 19, 2020

Please track here #972

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants