Running Anki on fixed port when developing

I use chrome dev tools for debugging the web pages. But every time Anki runs on different port, so is there way to run Anki on fixed port? Or which part of code should be changed to make it run on fixed port?

1 Like

Try setting the env var ANKI_API_PORT to your desired port.

3 Likes

Thanks

You can also use tools/ts-run

1 Like

Thanks