File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 1- import { mkdir , readFile , stat } from 'node:fs/promises'
1+ import { mkdir , readFile } from 'node:fs/promises'
22import {
33 defineNuxtModule ,
44 createResolver ,
@@ -154,23 +154,6 @@ export default defineNuxtModule<ModuleOptions>({
154154 nuxt . options . routeRules ! [ `/api/content/${ collection . name } /database.sql` ] = { prerender : true }
155155 }
156156 } )
157- // Register user global components
158- const _layers = [ ...nuxt . options . _layers ] . reverse ( )
159- for ( const layer of _layers ) {
160- const srcDir = layer . config . srcDir
161- const globalComponents = resolver . resolve ( srcDir , 'components/content' )
162- const dirStat = await stat ( globalComponents ) . catch ( ( ) => null )
163- if ( dirStat && dirStat . isDirectory ( ) ) {
164- nuxt . hook ( 'components:dirs' , ( dirs ) => {
165- dirs . unshift ( {
166- path : globalComponents ,
167- global : true ,
168- pathPrefix : false ,
169- prefix : '' ,
170- } )
171- } )
172- }
173- }
174157
175158 await installMDCModule ( options , nuxt )
176159
You can’t perform that action at this time.
0 commit comments