diff --git a/baremaps-core/src/main/java/org/apache/baremaps/config/ConfigReader.java b/baremaps-core/src/main/java/org/apache/baremaps/config/ConfigReader.java index 8c08a2569..772220f1e 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/config/ConfigReader.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/config/ConfigReader.java @@ -44,7 +44,7 @@ private String eval(Path path) throws IOException { var script = String.format(""" import config from '%s'; export default JSON.stringify(config); - """, path.toAbsolutePath()); + """, path.toUri()); var source = Source.newBuilder("js", new StringReader(script), "script.js") .mimeType("application/javascript+module").build(); var value = context.eval(source);