directus-sync icon indicating copy to clipboard operation
directus-sync copied to clipboard

Set project logo in settings with new files sync feature

Open ulfgebhardt opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe. The new seed-files feature works well, but I do not know how to set the project logo in settings.json

Is this possible yet?

I assume there is a conflict with settings being written with the command directus-sync push while files are written with directus-sync seed push.

Describe the solution you'd like I'd like to reference files in other collections and seed this data. This includes the directus settings for the project_logo

Describe alternatives you've considered

Currently I run

UPDATE public.directus_settings SET project_logo = (SELECT id FROM directus_files WHERE filename_download = 'utopia-logo.svg');

Which works but is obviously flawed

Additional context

Relates https://github.com/utopia-os/utopia-map/pull/325

ulfgebhardt avatar Aug 21 '25 08:08 ulfgebhardt

@ulfgebhardt The Directus collections sync process and the Seed sync process are not meant to be joined. In other words, there is no simple way to link a files that has been created from seed, in settings.json I will think about it and find a way to achieve this

EdouardDem avatar Sep 25 '25 02:09 EdouardDem