MEDIA_CONFIG_OUTSIDE_PROJECT
`nextly media orphans --apply` was given a configuration from outside the project, whose storage may be another project's.
Cause
nextly media orphans --apply was given a configuration from outside the project, whose storage may be another project's.
--apply compares the media storage the config names with the media table in the project's database. A config outside the project, given with --config or linked from it, may name another project's storage, whose files would all read as left behind. Nothing was changed.
Fix
The same holds for nextly media remove-sizes --apply, which removes the image size files items stored before sizes were removed.
- Run the command from the project that config belongs to.
- Or pass
--configa configuration inside the project--cwdnames.
Example
✗ Nothing was changed: the config ../other-project/nextly.config.ts is outside /home/you/app.
Why: /home/you/app's database settings would be read, so the config's storage may be another project's.
Next: Run the command from that config's project to remove files.
Docs: https://nextlyhq.com/docs/cli/errors/media-config-outside-project (MEDIA_CONFIG_OUTSIDE_PROJECT)MEDIA_APPLY_OUTSIDE_PROJECT
`nextly media orphans --apply` was run from outside the project `--cwd` names, so the database settings it read may be another project's.
MEDIA_REINDEX_OUTSIDE_PROJECT
`nextly media reindex-usage` was run from outside the project `--cwd` names, or given a configuration from outside it, so the database it would rebuild or the content it would read may be another project's.