adrianhajdin / project_tiktik

https://jsmastery.pro
598 stars 180 forks source link

Using api routes in getServerSideProps #2

Open coderx0 opened 2 years ago

coderx0 commented 2 years ago

In many pages ( Ex: index.tsx ) api routes are being used inside getServerSideProps which is not recommended as it will cause an extra request ( because api routes and getServerSideProps both run on server ) reducing performance.

vaniadimova commented 2 years ago

I am getting an error on the upload file, 404 and still working on it but it is strange for the localhost not to be able to fetch the page ...