Issue with Hotwire stream and avatar_url_for

Hey, I've started playing with Hotwire and noticed an issue when I stream comments using turbo the helper avatar_url_for the image url is set to "example.org"
Once the page is refreshed it returns to "localhost:5000
I've only seen this mentioned once that says to set
Once the page is refreshed it returns to "localhost:5000
I've only seen this mentioned once that says to set
config.action_controller.default_url_options
It fixes the issue but just wondering if its the correct way? Does this mean it would also need to be set for production etc.



Thanks! What I got working was
1)
2)
This works for me in all cases, even over Hotwire broadcast from the model.
1)
config.action_controller.default_url_options = {host: "myapp.local", port: "3000"}
got the user's avatar working 2)
image_
path
"default_image"
in the helper for the default image This works for me in all cases, even over Hotwire broadcast from the model.
Notifications
You’re not receiving notifications from this thread.