I've solved this issue by updating package.json like the below.
"scripts": { "dev": "next dev", "build": "next build", "start": "next start -p $PORT" },