shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

269
active users

#ssr

0 posts0 participants0 posts today

> Today, we’re excited to launch support for fullstack #Nextjs apps and sites on #Fleek! With this release, developers can now effortlessly deploy apps and experience server-side rendering (#SSR) and static site generation (#SSG) functionality directly within Fleek’s edge-optimized platform, unlocking unparalleled scalability, performance, and control.

fleek.xyz/blog/announcements/n

fleek.xyzIntroducing Fullstack Next.js Support on Fleek: Build, Deploy, and Scale Dynamic Apps with EaseFullstack Next.js support is live on Fleek. Deploy apps with SSR and SSG on an edge-optimized platform for top performance and control.

I'm starting to believe that #SSR for #webcomponents is not really a well-defined concept. Unless the entire App is a react-like pure function, you'd really need to pre-render entire pages with JSDOM, Puppeteer or similar because components could possibly depend on (or modify everything on) any given page.

The entire point of server-side (ssr) rendering is to return fully rendered content. (?)

If you don't want the fully rendered interpreted result and instead want the higher level templating and instructions for the client to interpret that's called client-side rendering (csr).

You can preserve the raw code for additional client render steps in Enhance. But for most elements you won't need to. And yes it can all be shadowdom also if you want to (but again yagni).

I did what every – exaggerating – #webdev has to do:

Rewriting the own #blog and #website after some years. New website, same URL, all posts should keep working under same URI.

More stuff to come, I just had a few days and a few hours of free time to switch from custom static site renderer (andi1984.dev/posts/my-static-s) to #nextjs with #ssr and more dynamic content (planned).

More to come for sure...

andi1984.dev
andi1984.dev/rss.xml

andi1984.devAndi1984Frontend dev
Replied to Brian LeRoux 💚

@brianleroux
– The debate client-side vs server side is almost as old as the web itself. There was a decade where almost everything was rendered on the server because clients didn't have the power to render all that stuff. Then there was the decade where almost everything was rendered on the client because that was "cooler". Now, everyone wants to do #SSR. Truth is, it isn't either or. Both have their pros and cons.
2/2

I just started playing around with #Preact #SSR with #htm and the first thing I did was render the classic:

```
render(html`
<!DOCTYPE html>
<html>
<head>
<title>Preact</title>
<meta charset="utf8">
</head>
<body>
<h2>Hello, World!</h2>
</body>
</html>
`)
```

And this intuitively output:

```
html
<head>
<title>Preact</title>
<meta charset="utf8" >
<body>
<h2>Hello, World!</h2>
</body>
</head>
```

Lolwat?
* `<!DOCTYPE html>` is gone.
* `<html>` turned into `html` and lost its close tag.
* `<body>` got moved inside `<head>`.

#WTF

Apparently you can't output a doctype at all (github.com/preactjs/preact-ren) and the `<meta>` tag is not self-closing in #JSX.

I'm willing to accept those constraints, but this is an utter failure of DX IMHO. If my template is wrong, TELL ME! Don't just generate what's effectively garbage for seemingly no reason. There's no obviously logical path from "bad output" to "the mistake in my code". Error messages, please!

GitHubThe output of DOCTYPE is strange. · Issue #201 · preactjs/preact-render-to-stringBy shingo-nakanishi

This is by no means a fully complete/polished project - buuut I have taken my #SPA #TypeScript #CRA and gone FULL #Golang, cached templates, #SSR, and vanilla #JS. There’s only one partially complete #TextAdventure #game (don’t choose the “engineering” arc 😂) at the moment, but I’m happy with how things are shaping up. BTW - it’s deployed on Render, so you may exp -2min first page load if they snoozed my server. Oh & @Lowie cheekbones arc is done 😂

otterly.games/

otterly.gamesOtterly Ridiculous Games | Play Ridiculous Text Adventure Games OnlinePlay fun and ridiculous text adventure games online right in your browser!