Hi there and welcome!
I am not aware of a way to do this, but I agree that it would be valuable. I have just opened a somewhat related feature request Option to work offline (block network access).
Edit: there is a somewhat related open feature request here: Offline mode / better offline handling - Feedback / Feature Requests - Logseq