Open Ena-Heleneto opened 4 months ago
I am not sure if I understand your question. Do you want to add other folders that are auto imported? If yes, this is from the Nuxt docs:
You can also auto-import functions exported from custom folders or third-party packages by configuring the imports section of your nuxt.config file.
Same should apply to nitro.config.ts
First of all, thank you for your reply, but I still have some questions
This is my project structure
I want to automatically import modules in server/services
In nuxt.config.ts, I can set the frontend module path for auto-import via imports, but this is not available for backend modules
// `stores` Frontend module path
// `services` Backend module path
// I tried this way of writing, and it didn't work either. dirs: ['stores', 'server/services'],
imports: {
imports: [
{ name: 'consola', from: 'consola' },
{ name: '*', from: 'echarts', as: 'eCharts' },
{ name: '*', from: 'bpmn-js', as: 'bpmn' },
{ name: '*', from: 'esdk-obs-nodejs', as: 'obs' },
],
dirs: ['stores', 'services'],
},
Do I need to configure it separately in nitro?
Thanks
Hello,Can someone help me?
Describe the feature
I want to optimize the code structure, not all of it is in untils. Can this be achieved through configuration?
Additional information