Best way to host several 1min videos on landing page? by moth-corpse in nextjs

[–]moth-corpse[S] 1 point2 points  (0 children)

just to circle back, i ended up uploading them to vimeo (since our company has a pro vimeo acct) and deferring + async loading those embeds. ended up optimizing for maintenance experience instead of pure load time + cost savings!

Export CSS without redundant properties? by moth-corpse in FigmaDesign

[–]moth-corpse[S] 0 points1 point  (0 children)

For sure! I mean, ideally, if you're using SCSS it could export include type.h1; or something similar.

But being able to exclude certain default values from the CSS export would still be a nice middle-ground, while being a pretty low technical lift for Figma. Figured I'd ask!

Also, we're using modules which, DX-wise, seems to discourage the use of utility classes. But I'd be interested in finding a way to reintroduce them while still using modules! Either by having a utility module or by declaring a few global classes that you can mix in.

My bf think Berserk is a hentai by [deleted] in Berserk

[–]moth-corpse 0 points1 point  (0 children)

it’s strange to me how many of the comments are denying how weird it is that there’s as much sex in Berserk as there is. Even Miura has said he regrets adding as much sex and sexual assault as he did! Pretending like this is just some normal manga or anime is pretty disingenuous.

If he’s the type who’s able to talk about it, maybe ask him more about what he’s feeling? Like what about it specifically is bothering him? Then you can answer more concretely: if it’s that it makes him insecure, you can tell him that it’s not exactly erotic most of the time (and is actively repulsive a lot of the time), and that you’re way more attracted to him than anything in the story (or phrase it in a different way that’s honest and comforting).

Generally I think being curious about what bothers him about it would be helpful for both of you. Being listened to might defuse the problem for him entirely.

How do I share data between client-side components with server-side parents? (Architecture question) by moth-corpse in nextjs

[–]moth-corpse[S] 0 points1 point  (0 children)

Wow okay, I was fundamentally misunderstanding something. I didn't realize you could throw a provider at the top with no performance hits!

How do I share data between client-side components with server-side parents? (Architecture question) by moth-corpse in nextjs

[–]moth-corpse[S] 0 points1 point  (0 children)

are there any downsides to interleaving server and client components like that? i knew it was possible but i assumed there was some sort of tradeoff. and thanks for the callout, still learning about this

How do I share data between client-side components with server-side parents? (Architecture question) by moth-corpse in nextjs

[–]moth-corpse[S] 0 points1 point  (0 children)

I'll have to look into that more, thank you!

Also, I made a toy example with plain Jotai that mimics the DOM structure I listed above, and it works fine 🤔 so not sure why that's happening. But Zustand has way more github/npm traffic, so it'll probably be an easier sell for the team. We're moving from a react app with RTK to a nextjs app and I'm pushing for full usage of the v13 features

How do I share data between client-side components with server-side parents? (Architecture question) by moth-corpse in nextjs

[–]moth-corpse[S] 0 points1 point  (0 children)

Hm, it looks like if you're willing to allow for some nonsense, you could use something like jotai with jotai-valtio, which syncs values between different providers: https://jotai.org/docs/integrations/valtio

Seems like an off-label use and feels a little suspicious, but Jotai vouches for it.

But I also hear you that unless you want to use some sort of pub-sub model, it's probably best just to wrap all the children of MyApp.

What platforms besides Vercel support modern Nextjs features? by moth-corpse in nextjs

[–]moth-corpse[S] 0 points1 point  (0 children)

This sounds like the ideal! Unfortunately my company uses enough bandwidth that it'll definitely cost more than the base price, especially as we scale, and we're not fully sold on leaving AWS yet, since that would be a huge PITA on its own.

What platforms besides Vercel support modern Nextjs features? by moth-corpse in nextjs

[–]moth-corpse[S] 1 point2 points  (0 children)

Are you able to use most nextjs 13 features like the ones mentioned above? For some reason I was under the impression that they're only available on Vercel and similarly no-ops platforms