Is it possible to turn off "not inside the base site directory" check?

I’m building a multilingual site with a separate domain for each language.

Both sites share the same static content with lots of CSS, JS, images.

I came up with the following directory structure:

├── example.de/
│   ├── templates/
│   ├── content/
│   ├── static/   <------ symlink to ../static/
│   └── config.toml
├── example.fr/
│   ├── templates/
│   ├── content/
│   ├── static/   <------ symlink to ../static/
│   └── config.toml
├── static/

Inside static/ is manifest.json generated by Javascript framework that I use, which is loaded into Zola’s templates like so:

{% set manifest = load_data(path="static/manifest.json") %}

It does not work because:

Reason: Function call 'load_data' failed
Reason: `load_data`: "static/manifest.json" is not inside the base site directory <...>

This check (that smth is inside base dir) is completely ruining my otherwise optimal workflow.

Is there any way to disable it?

Not possible currently no. It could be disabled when a theme is not used but I’m not sure it’s worth it

Pity. I wish it was either possible to configure paths in the config (e.g. set static_dir to “…/static”) or disable this check. Thanks for your work.