-
-
Notifications
You must be signed in to change notification settings - Fork 107
Experimental SSR plugin #169
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Should we convert this into a monorepo'ish structure to have some plugins that we offer (also as an inspiration to people who want to implement their own)?
Possibly - they have to be published independently of the main package, but that doesn't seem like a huge issue. In the case of this SSR thing I'm not sure if it's ready to be a proper plugin, was more of a way to keep the experiment working without landing it in core. |
Size Change: -41 B (0%) Total Size: 693 kB
ℹ️ View Unchanged
|
Should we revive this into a custom plugin? Do we expect a production server running, if so will we have output targets that make it easy to publish i.e. person wants a |
I have an idea for project where I'd need to SSR some pages on demand, and currently I'm on the fence if I should go with preact/wmr for it... I'd really love to, but I wish there was a decent way to do it without doing crazy hacks. Don't wanna go with Rails :) Not sure if it's useful but here's a +1 for this feature |
This adds support for
wmr.config.js
, and uses it in the demo app to demonstrate an SSR middleware.ToDo:
prerender()
export we support for prod prerendering