Step 1: npx @next/codemod@latest next-async-request-api --force
Step 2: 'On which files or directory should the codemods be applied?': '.'
Also we need to make sure that the function is declared as async, otherwise the changes won't take effect.