Reload the live preview when the app is restarted.

This commit is contained in:
James Murdza
2024-08-01 10:56:39 -07:00
parent aac602d9db
commit d4c65ad1a3
3 changed files with 30 additions and 17 deletions

View File

@ -37,6 +37,8 @@ export default function RunButtonModal({
if (terminals.length < 4) {
createNewTerminal("yarn install && yarn start");
// For testing:
//createNewTerminal("echo http://localhost:3000");
} else {
toast.error("You reached the maximum # of terminals.");
console.error('Maximum number of terminals reached.');