Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Next.js you'd typically use getServerSideProps on a page to talk to the backend at runtime. API routes have their place of course, but I've built fairly large-ish websites that almost entirely get their data via getServerSideProps.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: