diff --git a/src/servers/app-store/assets.ts b/src/servers/app-store/assets.ts index 1839fd58..4ef1a281 100644 --- a/src/servers/app-store/assets.ts +++ b/src/servers/app-store/assets.ts @@ -32,6 +32,9 @@ export const assetPublicDir = (sidecarId: string): string => join(process.cwd(), /** The URL a manifest should use for a shipped icon. */ export const iconUrl = (sidecarId: string): string => `/plugins/${sidecarId}/icon.png`; +/** The URL for a shipped splash. Published by the same copy — `publishAssets` takes the whole dir. */ +export const splashUrl = (sidecarId: string): string => `/plugins/${sidecarId}/splash.png`; + const exists = async (path: string): Promise => { try { await stat(path); diff --git a/src/servers/plugins/discover.ts b/src/servers/plugins/discover.ts index fbdee19c..2ca3ad92 100644 --- a/src/servers/plugins/discover.ts +++ b/src/servers/plugins/discover.ts @@ -106,6 +106,9 @@ export async function loadPlugin(dir: string, appName: string): Promise_`. */ diff --git a/src/servers/plugins/public-paths.test.ts b/src/servers/plugins/public-paths.test.ts index 9ac0a57a..437f589d 100644 --- a/src/servers/plugins/public-paths.test.ts +++ b/src/servers/plugins/public-paths.test.ts @@ -30,6 +30,7 @@ const plugin = (appName: string, unauthenticatedPaths?: string[], publisher = 'o ...(unauthenticatedPaths ? { unauthenticatedPaths } : {}), }, icon: null, + splash: null, api: null, schema: null, sidecar: null,