Skip to content

Commit 65dd930

Browse files
committed
chore: wip
1 parent fd8d3c2 commit 65dd930

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

storage/framework/core/router/src/middleware.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ const readdir = promisify(fs.readdir)
2020

2121
async function importMiddlewares(directory: string) {
2222
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+
// }
3031

3132
return middlewares
3233
}

0 commit comments

Comments
 (0)