Skip to content

Instantly share code, notes, and snippets.

@domosedov
Created June 29, 2022 17:41
Show Gist options
  • Save domosedov/f5eb0c701d61535f24ce5b1c12535ac8 to your computer and use it in GitHub Desktop.
Save domosedov/f5eb0c701d61535f24ce5b1c12535ac8 to your computer and use it in GitHub Desktop.
Next.JS Tips
const isFirstServerCall = req?.url?.indexOf('/_next/data/') === -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment