fix: routes import error in node 20

This commit is contained in:
DIYgod 2024-03-01 00:52:53 +08:00
parent d35c47e444
commit 0ae5f09b1f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ type Root = {
};
const imports = directoryImport({
targetDirectoryPath: './v2',
targetDirectoryPath: path.join(__dirname, './v2'),
importPattern: /router\.js$/,
});