Skip to content

Instantly share code, notes, and snippets.

@hrithikwins
Created November 3, 2021 15:55
Show Gist options
  • Save hrithikwins/d3c69d503a1b99357c879c7d74dad0b9 to your computer and use it in GitHub Desktop.
Save hrithikwins/d3c69d503a1b99357c879c7d74dad0b9 to your computer and use it in GitHub Desktop.
Some Common Mistakes in Next.js Notes
  • Use serverless functions as well in /api to prerender
  • use can use next.config.js for only adding routes for index.pages.tsx or anyname.pages.tsx image
  • link href="" to prefetch..people go with installing react-router-dom or useRouter()
  • do not use styles for height and width in instead use height and width attributes directly always
    • fetch all data for your different server and store them in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment