getServerSideProps NextJS
Is getServerSideProps used only to fetch data?
I mean is it worth calling it e.g to fetch images from public folder?
3 Replies
no you don't need to do that. just set the source of the image to the file in the public folder
@InfiniteCodeMonkeyTheorem so basically its best use is to fetch data?
you can also check for session....stuff like that