Commit 4593eef2 by heheer Committed by GitHub

add “favicon” feconfig (#467)

* add favicon config

* add default
parent d91551e6
......@@ -23,6 +23,7 @@ export type FeConfigsType = {
exportLimitMinutes?: number;
};
scripts?: { [key: string]: string }[];
favicon?: string;
};
export type SystemEnvType = {
......
......@@ -101,7 +101,7 @@ function App({ Component, pageProps }: AppProps) {
name="viewport"
content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no, viewport-fit=cover"
/>
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href={feConfigs.favicon || '/favicon.ico'} />
</Head>
{scripts?.map((item, i) => <Script key={i} strategy="lazyOnload" {...item}></Script>)}
......
......@@ -59,7 +59,8 @@ const defaultFeConfigs: FeConfigsType = {
limit: {
exportLimitMinutes: 0
},
scripts: []
scripts: [],
favicon: '/favicon.ico'
};
export function initGlobal() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment