移除Next默认favicon注入并改用动态favicon源
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-14 21:43:11 +08:00
parent 75bdea6fdb
commit a70ab94ead
2 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function resolveFaviconUrl(rawUrl: string, requestUrl: string) {
}
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, {
status: 200,
headers: noStoreHeaders(DEFAULT_CONTENT_TYPE),

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB