Environment: server
type Value = string | null | undefined
type Favicon = Value | ((pageContext) => Value)

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

You need 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