You can read the details at this dev.to article
First, create a .env.local
file in the root folder of the repo.
$ touch .env.local
Then add these properties to it
NEXT_PUBLIC_IRIDIUM_DOMAIN=${your-specific-iridium-url}
NEXT_PUBLIC_IRIDIUM_REDIRECT_URI=http://localhost:3000/callback
NEXT_PUBLIC_IRIDIUM_CLIENT_ID=${your-iridium-client-id}
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see how Iridium works with Next.js.