Next.js Building a Car Trader App #2: Car Details Page using getServerSideProps

Published: 07 May 2020
on channel: Bruno Antunes
7,972
206

In this video, we are gonna build the car page details using getServerSideProps.

In this mini-series, we are going to build an application to sell used cars, called Car Trader.
We will have a search page with multiple filters, a listing page, a details page and an FAQ page.

From Next.js documentation:
When should I use getServerSideProps?
You should use getServerSideProps only if you need to pre-render a page whose data must be fetched at request time. Time to first byte (TTFB) will be slower than getStaticProps because the server must compute the result on every request, and the result cannot be cached by a CDN without extra configuration.

If you don’t need to pre-render the data, then you should consider fetching data on the client-side using SWR.

----
Microphone Application Demo:    • Next.js Tutorial - Part 8 | Static Si...  
----
Github Repository: https://github.com/bmvantunes/youtube...
----
RFC: Incremental Static Generation: https://github.com/zeit/next.js/discu...
----

----
Follow me on:
Twitter:   / bmvantunes  
Dev.to: https://dev.to/bmvantunes
Website: https://brunoantunes.net
Github: https://github.com/bmvantunes
LinkedIn:   / bmvantunes  


Watch video Next.js Building a Car Trader App #2: Car Details Page using getServerSideProps online without registration, duration hours minute second in high quality. This video was added by user Bruno Antunes 07 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,972 once and liked it 206 people.