React hook that manages a static HTTP file server for serving the web controller.
In production mode, starts a StaticServer bound to 0.0.0.0 on the configured port,
serving files from staticDir (or the iOS bundle directory + /www by default).
On Android, staticDir must be provided since bundle assets live inside the APK.
In dev mode, skips the server and returns devServerUrl directly.
React hook that manages a static HTTP file server for serving the web controller.
In production mode, starts a
StaticServerbound to0.0.0.0on the configured port, serving files fromstaticDir(or the iOS bundle directory +/wwwby default). On Android,staticDirmust be provided since bundle assets live inside the APK. In dev mode, skips the server and returnsdevServerUrldirectly.