TypeScript: string | null | ((pageContext) => string | null | undefined)
Environment: server
Cumulative: no
Global: yes

Provided by: vike-react/vike-vue/vike-solid

You need to install vike-react/vike-vue/vike-solid to be able to use this setting.

⚠️

This setting is experimental and may be removed in the future. Consider using +Head instead.

The favicon setting sets the page's favicon.

// pages/+config.ts
 
import type { Config } from 'vike/types'
import favicon from './favicon.svg'
 
export default {
  favicon
} satisfies Config

If you want to set a different favicon for different pages, then consider creating a custom setting as shown at Guides > <head> tags > Custom settings.

See also