I just tried to start a local development environment (MacOS) of the web ui (frontend only) but I after I start the fronend via
npm start I’m not able to access OH since the api url (
OH_APIBASE) to my OH instance is not used.
I tried setting the
OH_APIBASE variable via cross-env in the npm dev script and also replaced the default
http://openhab:8080 in the webpack.config.js with my own url.
But every time I start the frontend the web app tries to access the rest endpoint on
Am I missing some essential step to change the backend OH instance?
I tried starting the dev server with the latest versions of node v12 as well as v16 but the results with both versions are the same as described before.