[2] fix serve static files

This commit is contained in:
vchikalkin 2023-01-10 23:36:47 +03:00
parent 3554d95656
commit 5553166788
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export const metaFavicon = (
<link rel="apple-touch-icon" sizes="180x180" href={buildPath('/apple-touch-icon.png')} />
<link rel="icon" type="image/png" sizes="32x32" href={buildPath('/favicon-32x32.png')} />
<link rel="icon" type="image/png" sizes="16x16" href={buildPath('/favicon-16x16.png')} />
<link rel="manifest" href="/site.webmanifest" />
<link rel="manifest" href={buildPath('/site.webmanifest')} />
<link rel="mask-icon" href={buildPath('/safari-pinned-tab.svg')} color="#5bbad5" />
<meta name="theme-color" content="#ffffff" />
</>

View File

@ -16,7 +16,7 @@ const faviconSubPath = env.USE_DEV_COLORS ? '/favicon/dev' : '/favicon/prod';
function buildFaviconRewrite(source) {
return {
source,
destination: String.prototype.concat(faviconSubPath, source),
destination: String.prototype.concat(env.BASE_PATH, faviconSubPath, source),
};
}