Realtime example on local Next.js app not working
Hard to describe what's going on so I just recorded my screen while testing the realtime example
Basically, it first crash, then the engine reloads, the connection seems alive, but I type, nothing's going on and at some point (very random) it register the typing
The error in browser console is from iCloud Passwords extension, it can be ignored
Registry:
5 Replies
hey! we've been working out some of these issues with local dev, we're cutting a release today or tomorrow that should solve this
will try to remmeber to post here when it's up
@Baptiste we've fixed a handful of issues in v2.0.22, give it a try!
I can make the default Next.js count example work though not the realtime doc one. Do you confirm the Realtime docs example works on your end?
Now it seems the increment count example does not work either

looking in to this in a few
i'm sorry this fell off my plate. it looks like you're self-hosting Rivet and connecting it to Next.js correct?
if this is running on localhost, something's not right.
If you're running this on a separate server from Next, you need to configure the
public_url: https://github.com/rivet-dev/rivet/blob/21c1ff44bae64d80cde5846c5ab937d0e9e8ba7b/engine/packages/config/src/config/topology.rs#L73GitHub
rivet/engine/packages/config/src/config/topology.rs at 21c1ff44bae6...
An open-source library for long-lived processes with realtime, persistence, and hibernation - rivet-dev/rivet