N
Nuxtβ€’3mo ago
Dobby

Advice for following a better architecture?

Hi, I'm looking for some advice on what other ways there are to handle a more scalable architecture. Currently, I'm trying to do a module-based approach (like other frameworks - even though I lost some features like auto-import and other things). However, I'm still thinking what would be the best approach to handle more complex and scalable architectures (instead of dropping all my components inside the /components directory or placing them inside a directory in the /components directory). I know there are /layers, but I found that when I want to access other layers from another layer (i.e. shared module -> /shared/components), I have to explicitly write to include that layer. I don't know if there is anyone with enough experience or knowledge in this scenario. Maybe just use /components/[module]/? I don't know πŸ€”
No description
1 Reply
Stefano Bartoletti
Stefano Bartolettiβ€’3mo ago
Why fight against the conventions of a framework by using those of another? Just use the components folder and place your components there, using subfolders when needed. You will take advantage of all Nuxt features (losing auto-imports and other specific features is a huge loss IMHO) and you don't have to rebuild an architecture from scratch
Want results from more Discord servers?
Add your server