移除Next默认favicon注入并改用动态favicon源
This commit is contained in:
parent
75bdea6fdb
commit
a70ab94ead
@ -57,7 +57,7 @@ function resolveFaviconUrl(rawUrl: string, requestUrl: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function readLocalFallbackFavicon() {
|
async function readLocalFallbackFavicon() {
|
||||||
const file = await readFile(join(process.cwd(), "app", "favicon.ico"));
|
const file = await readFile(join(process.cwd(), "public", "default-favicon.ico"));
|
||||||
return new NextResponse(file, {
|
return new NextResponse(file, {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: noStoreHeaders(DEFAULT_CONTENT_TYPE),
|
headers: noStoreHeaders(DEFAULT_CONTENT_TYPE),
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Loading…
x
Reference in New Issue
Block a user