refactor: Extract iconUrl generation of steps to helper
This commit is contained in:
7
packages/backend/src/helpers/generate-icon-url.js
Normal file
7
packages/backend/src/helpers/generate-icon-url.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import appConfig from '../config/app.js';
|
||||
|
||||
export const generateIconUrl = (appKey) => {
|
||||
if (!appKey) return null;
|
||||
|
||||
return `${appConfig.baseUrl}/apps/${appKey}/assets/favicon.svg`;
|
||||
};
|
||||
Reference in New Issue
Block a user