Open terminal with dev server when switching to dev mode

I’m working on a Next.js app.

When I switch from the agentic prototyper mode to the dev mode, there is a dev server already running but I can’t see the terminal output of this server and I’m also not able to stop it easily. I have to grep the process and kill it to be able to start a dev server in a terminal. - That is somehow inconvenient.

Is there any way to bring up the terminal with the dev server running, that was started in prototyper mode? That would be awesome.

  • ask gemini to change the server port in the configuration file.

  • you’ll then be able to start a new server (the default one will still be running, but you can’t touch it).

  • be sure to update the new port on your .env.local

  • you can get the url by opening a new tab from the preview, copy the address, this will be something like https://6000-firebase-studio-174718368342y984238jdklwfmj020rt93j2

  • Change the 6000 to your new port value set by gemini.

  • paste the link to your NEXT_PUBLIC_APP_URL= located inside the .env.local file