N
Nuxt2mo ago
kora

Data folder

In Nuxt 4, do we still use the data folder? If yes, where exactly should I put it in the project structure?
3 Replies
kapa.ai
kapa.ai2mo ago
Hi @kora. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources do not mention a dedicated data folder in the Nuxt 4 directory structure. The official documentation and migration guides for Nuxt 4 list the standard folders (such as app/, server/, public/, shared/, modules/, etc.), but there is no reference to a data/ folder or its recommended placement. If you have data files (like JSON, YAML, etc.), you might consider placing them in the public/ directory if they need to be statically served, or in the app/utils/ or shared/ directory if they are used as part of your application logic. However, this is not explicitly documented for Nuxt 4, so you should follow the conventions of your project or check for updates in the official documentation as the framework evolves New Directory Structure dir config. If you need a specific data directory for your use case, you can create one, but it will not be auto-scanned or treated specially by Nuxt 4 according to the current documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@637669517811515415> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Nawi
Nawi5w ago
You meant .data folder?

Did you find this page helpful?