-
I've got a static site with a relatively middling number of pages (around 3k to 10k pages depending on how you slice it). To handle the long tail of content - not to mention generation time - I For development, I just query markdown files on disk; in production, I query single, large JSON files. I'm looking at deploying the site to Netlify; my build command runs I've generated this file in [functions]
included_files = ["data/**/*.json"] and finally, in my library code, I've included: const allFooObjects = JSON.parse(readFileSync('../data/foo.json').toString()) and yet the function, in the production environment, errors out because it's unable to find the file. I can't tell if this is a Netlify issue or an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ignore me:
|
Beta Was this translation helpful? Give feedback.
Ignore me: