fix: let's try yet another way to try to do this
This commit is contained in:
parent
e1d914a28b
commit
9bbece2601
2 changed files with 2 additions and 3 deletions
|
@ -121,8 +121,7 @@ export class SERVER {
|
|||
continue;
|
||||
}
|
||||
|
||||
const import_path = new URL('file://' + entry.path, import.meta.url).toString();
|
||||
const handler_module: HANDLER_MODULE = await import(import_path);
|
||||
const handler_module: HANDLER_MODULE = await import(entry.path);
|
||||
if (typeof handler_module.default !== 'function') {
|
||||
console.warn(`Could not load handler, no default exported function: ${entry.path}`);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue