feat: Migrate file storage to unified data directory
This commit is contained in:
@@ -7,12 +7,7 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const PRELOADED_FAVICON_FILENAMES = fs
|
||||
.readdirSync(
|
||||
path.join(
|
||||
sails.config.custom.uploadsBasePath,
|
||||
sails.config.custom.preloadedFaviconsPathSegment,
|
||||
),
|
||||
)
|
||||
.readdirSync(path.join(sails.config.paths.public, 'preloaded-favicons'))
|
||||
.filter((filename) => filename.endsWith('.png'));
|
||||
|
||||
const PRELOADED_FAVICON_HOSTNAMES_SET = new Set(
|
||||
|
||||
Reference in New Issue
Block a user