So verwenden Sie die Portvariable in Axios

axios.get(`${proccess.env.HOST}:${PORT}/api/categories`)
 Run code snippet
Charming Chipmunk