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
InfiniteCodeMonkeyTheorem
no you don't need to do that. just set the source of the image to the file in the public folder
kukri_
kukri_2y ago
@InfiniteCodeMonkeyTheorem so basically its best use is to fetch data?
InfiniteCodeMonkeyTheorem
you can also check for session....stuff like that
Want results from more Discord servers?
Add your server