Next.js Discord

Discord Forum

Why is getStaticPaths marked async if it doesn't await anything inside the function?

Unanswered
Bonga shad posted this in #help-forum
Open in Discord
Bonga shadOP
I just happened to notice this going through the Next.js tutorial, and was simply curious.

1 Reply

@Bonga shad I just happened to notice this going through the Next.js tutorial, and was simply curious.
nextjs team just love async functions for some reasons. but you can remove the async keyword and it will still work fine