To change the port for a backend server, open the .env file, change the PORT variable to the desired port number, save the file, and restart the server using pm2. The frontend API port in the config.json file must also be changed to match the new backend port.
To change the port for a backend server, open the .env file, change the PORT variable to the desired port number, save the file, and restart the server using pm2. The frontend API port in the config.json file must also be changed to match the new backend port.
To change the port for a backend server, open the .env file, change the PORT variable to the desired port number, save the file, and restart the server using pm2. The frontend API port in the config.json file must also be changed to match the new backend port.