I'm writing a library and I need users to be able to run some setup code. From my tests it seems that any code added to the root or entry files execute only when Qwik starts streaming a response, which happens after the onGet handler is fired.
Is there any way to run some initialisation code on the server before any onGet functions are called?
It wouldnt be great DX for users to have to write their own code to check if an initialisation step has been taken inside every onGet.
Thanks and appreciate any pointers!