Files
Noel Sabia 078a49d14e
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m8s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
PR Check / AI code review (opencode) (pull_request) Successful in 39s
Merge remote-tracking branch 'origin/main' into feat/language_support
Resolved: nuxt.config modules now carry @nuxt/icon and @nuxtjs/seo alongside @nuxtjs/i18n; package.json keeps both dependency sets; pnpm-lock.yaml regenerated. Also set i18n.baseUrl from site.config.mjs so sitemap alternates and future hreflang links are absolute.
2026-10-23 22:12:15 +02:00

72 lines
2.5 KiB
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
import { SITE } from './site.config.mjs'
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
modules: ['@nuxt/eslint', '@nuxtjs/tailwindcss', '@nuxt/icon/module', '@nuxtjs/seo', '@nuxtjs/i18n'],
// Shared by sitemap, robots, canonical URLs, Open Graph and schema.org.
site: {
url: SITE.url,
name: SITE.name,
description: SITE.description,
defaultLocale: SITE.locale,
},
// The social card is a static file (`public/og-image.png`, generated by
// `pnpm og-image`), so the dynamic renderer and its native dependency stay
// out of the build. SEO Utils still emits the og:image and twitter:image tags.
ogImage: false,
// The site is shipped as static files inside the gateway image, so there are
// no old chunk files to keep alive and no CI cache to restore them from.
skewProtection: false,
// A CV is about a person, so the site identity is a Person node; this links
// the auto-generated WebSite/WebPage graph to that person.
schemaOrg: {
identity: {
type: 'Person',
name: SITE.name,
url: SITE.url,
description: SITE.description,
jobTitle: SITE.role,
email: SITE.email,
sameAs: [SITE.github],
},
},
icon: {
// Inline SVG instead of the CSS/mask mode, so icons exist in the SSR HTML
// and survive with JavaScript disabled.
mode: 'svg',
// Only bundle the icons the source actually names, not the whole set.
serverBundle: { collections: [] },
clientBundle: { scan: true }
},
app: {
head: {
link: [
// Generated from app/utils/avatar.js by `pnpm favicon`.
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico', sizes: '32x32' }
],
meta: [
// Matches the page background, so mobile browser chrome blends in.
{ name: 'theme-color', content: '#031428' }
]
}
},
tailwindcss: {
cssPath: '~/assets/css/main.css'
},
i18n: {
// Absolute URLs for hreflang and the per-locale sitemaps.
baseUrl: SITE.url,
defaultLocale: 'en',
locales: [
{ code: 'en', language: 'en', name: 'English', file: 'en.json' },
{ code: 'de', language: 'de', name: 'Deutsch', file: 'de.json' },
{ code: 'es', language: 'es', name: 'Español', file: 'es.json' },
{ code: 'it', language: 'it', name: 'Italiano', file: 'it.json' },
{ code: 'pl', language: 'pl', name: 'Polski', file: 'pl.json' }
]
}
})