Does it improve SEO? (getStaticProps vs import data from "src/folder/data-file")

I import my data from a folder in the same src folder in nextjs, ie. I write (import data from "~/data-folder/pokemon-details.json";) at the top of a page. Would it improve my SEO if i use getStaticProps? I only see examples with external databases so I was curious on this.
2 Replies
Matvey
Matvey13mo ago
How do you import the file? import data from './filename.json' and just use the data in the component? You can disable JavaScript in your browser and try to load the page. If the data is there, using getStaticProps won't improve SEO
dvd545
dvd545OP13mo ago
Yup. This I’ll try that
Want results from more Discord servers?
Add your server