run next js app on different port and sub direc code example
Example 1: run nextjs in separate port
npm run dev -- -p 3005
Example 2: how to run nextjs in another port
yarn dev -p 3005
npm run dev -- -p 3005
yarn dev -p 3005