Not OP, but I've dabbled doing just that with a Digital Ocean droplet and using VS Code's Remote SSH extension. It's not lag free, but it's nice being able to access the same dev environment from multiple computers.
Good luck getting this new feature worked out while on a long flight.
Remote dev setups are nice, until internet is not being nice to you (either non-existent or wobbly)
Ignoring the last year, how often do you need to code while flying. I can't even use a laptop in a seat unless I pay extra for the extra leg room seats.
As someone who used to live on another continent as where my employers office was, I coded while flying at least 6 times a year, sometimes even more.
And while most would not fly that often, being able to code when internet is not available or in a bad shape is not only a 'nice to have' option, but almost a 'must have'