How to open custom URL with Next.js dev command

If you need to open custom url while running next.js dev you can use pre package.json script to do so:

{
  "scripts": {
    "predev": "open http://localhost:3000/CUSTOM_URL",
    "dev": "next dev"
  }
}