the best solution to a problem is eliminating the conditions that create that problem rather than adding another solution that creates new unique problems
Netlify is the only place outside of Vercel where Next can be deployed on a serverless front-end cloud with support for all the advanced features.
Today we're joining Open Next and starting to share our expertise with the broader community to help make Next run on more platforms.
🤝 We're moving our open-source Next.js adapter to the OpenNext GitHub organization and will begin collaborating across providers, like @Cloudflare and @SST_dev, to make sure Next.js runs well everywhere. bit.ly/40m6I9z
Enhance implements serverside rendering for web components.
It's less than 500 LOC, interpreted not transpiled, using the standards compliant parse5 library.
You can still upgrade elements clientside (but most don't require that thx to css).
No conditionals to render!
SSR for web components is demonstrably not hard.
But I ack maybe it is if you are trying to completely emulate a browser in a backend context. Tonnes of conditionals required to render.
So ..don't do that? Backend doesn't have click and submit events for good reasons..
Note: I'm not saying you *can't* use click and submit events. If you look at the Enhance readme you can see how
(even vanilla extending HTML element works perfectly fine serverside as long as you implement a render method... we call this "implementing an interface"... )
Check out enhance.dev/showcase to see what you can do.
Make sure to test with a performance tool like lighthouse. Vastly better on any metric we can measure.
It's ok if they aren't right for you.
But if you're going to write a lengthy article about it recommend learning about logical fallacies first. It'll make your arguments less cringe to web platform experts. who knows? Maybe your feedback could improve the web for everyone even.
I laugh at all this “web component vs frameworks nonsense” specially from a pragmatic point of view.
If we had adopted “Framework X” when we rewrote the Salesforce UI a decade ago, they would have been complete fucked right now due to the incompatibility of “new ideas” and the insane amount of legacy and hacks, stuck in a wall garden of madness.
Platform always wins on the long run.
"Frameworks are a testbed for ideas that may or may not work out. We all need to be OK with that. Even framework authors. Especially framework authors. More importantly, we all need to stop being salty when our way isn’t what makes it into the browser."
abeautifulsite.net/posts/web…
At Meta’s Connect developer conference, CEO Mark Zuckerberg showed off Orion, a futuristic pair of smart glasses that the company hopes will lead the next foundational shift in personal computing. wired.trib.al/3etkwHj
Took us 5 years to land the first million developers. Now 4 years later we crossed 5 million developers on our platform.
Come celebrate with us at Netlify Compose!
netlify.com/blog/celebrating…
clientside code should have no concept of auth. either you are authenticated, with an httponly cookie, or you aren't. code delivered should reflect that. if not, good news, there's an opportunity to improve! 😁