N
Nuxt6mo ago
JT

how to have `nuxt build` include extra data files

When I do nuxt build my app works fine except that I have some extra .json files that are loaded at run time for some of my server routes. However, Nuxt reports that those files are not found when when I run nuxt preview and try to access a server route. Everything works fine in nuxt dev, so I'm thinking there must be some way to either statically load the JSON files, or, better yet, to include them somehow so that the compiler includes them into the build.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server