File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
storage/framework/core/router/src Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,14 @@ const readdir = promisify(fs.readdir)
20
20
21
21
async function importMiddlewares ( directory : string ) {
22
22
const middlewares = [ ]
23
- const files = await readdir ( directory )
24
-
25
- for ( const file of files ) {
26
- // Dynamically import the middleware
27
- const imported = await import ( path . join ( directory , file ) )
28
- middlewares . push ( imported . default )
29
- }
23
+ // TODO: somehow this breaks ./buddy dev
24
+ // const files = await readdir(directory)
25
+
26
+ // for (const file of files) {
27
+ // // Dynamically import the middleware
28
+ // const imported = await import(path.join(directory, file))
29
+ // middlewares.push(imported.default)
30
+ // }
30
31
31
32
return middlewares
32
33
}
You can’t perform that action at this time.
0 commit comments