Para configurar o ngrok para rodar tanto o projeto frontend quanto o backend simultaneamente, basta adicionar o seguinte código ao arquivo "C:\Users\USER\.ngrok2\ngrok.yml"
authtoken: 1bGvuFnqnXjihKbkqtx8qVld2ie_2736j4KfrDdMHhBh3uDtn
tunnels:
portafront:
proto: http
addr: 8000
portaapi:
proto: http
addr: 8888
E então ao invés de executar apenas um tunnel com o comando ngrok http 8000
, por exemplo, basta executar todos os túneis definidos nesse arquivo, com:
ngrok start --all