Merge remote-tracking branch 'origin/main' into feat/language_support
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
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
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.
This commit is contained in:
commit
078a49d14e
26 files changed
+2007
-146
No files matched your search
+53
-1
@@ -1,12 +1,64 @@
|
||||
// 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', '@nuxtjs/i18n'],
|
||||
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' },
|
||||
|
||||
Reference in new issue
Block a user