[2] fix serve static files
This commit is contained in:
parent
3554d95656
commit
5553166788
@ -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" />
|
||||
</>
|
||||
|
||||
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user