Skip to content

Commit 772b8cd

Browse files
authored
Configure favicon in nuxt.config.ts
Added favicon configuration to Nuxt app settings.
1 parent 08220c2 commit 772b8cd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

nuxt.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,17 @@ export default defineNuxtConfig({
2929
// ⭐ ADD THIS - Critical for GitHub Pages subdirectory
3030
app: {
3131
baseURL: '/cs-documentation/', // Must match your repo name
32-
buildAssetsDir: 'assets', // Avoid Jekyll conflicts
32+
buildAssetsDir: 'assets',
33+
// Add this to configure favicon
34+
head: {
35+
link: [
36+
{
37+
rel: 'icon',
38+
type: 'image/x-icon',
39+
href: '/favicon_nfdi4chem.ico' // Nuxt will auto-prefix with baseURL
40+
}
41+
]
42+
}// Avoid Jekyll conflicts
3343
},
3444

3545
nitro: {

0 commit comments

Comments
 (0)