fix: Avoid 404 error when getting favicon on root (#4057)
* fix: Avoid 404 when getting favicon on root * Add changeset
This commit is contained in:
5
.changeset/weak-fans-explain.md
Normal file
5
.changeset/weak-fans-explain.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/server': patch
|
||||
---
|
||||
|
||||
fix: Avoid 404 error when getting favicon from root
|
||||
@@ -48,7 +48,7 @@ const defineAPI = async function (config: IConfig, storage: Storage): Promise<an
|
||||
app.get(
|
||||
'/favicon.ico',
|
||||
function (req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer): void {
|
||||
req.url = '/-/static/favicon.png';
|
||||
req.url = '/-/static/favicon.ico';
|
||||
next();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user