Post

Oof. :( Nextjs's server actions generate a unique id at build time. When a user has an older version of your app than your server is (aka. version skew), nextjs will throws an error because it can't find the id. When self hosting, this means I have to avoid server actions completely. 😅

I could host several versions of the app, and route to the correct k8s pod based on the version. But that's a whole lot of infra just to handle this, when version skew can usually be handled by deploying breaking changes in several steps to allow the changes to propagate to your users.

0 reposts0 likes

No replies yet.