Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions QualityControl/lib/config/configProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import { LogManager } from '@aliceo2/web-ui';
import { realpath } from 'node:fs/promises';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import { fileURLToPath, pathToFileURL } from 'url';

const logger = LogManager.getLogger(`${process.env.npm_config_log_label ?? 'qcg'}/config`);

Expand All @@ -27,7 +27,7 @@ let configFilePath = _getConfigurationFilePath();

try {
configFilePath = await realpath(configFilePath);
({ config } = await import(configFilePath));
({ config } = await import(pathToFileURL(configFilePath).href));

logger.info(`Configuration file successfully read from: "${configFilePath}"`);
} catch (err) {
Expand Down
Loading