7da168843c
- Add '@nuxt/content' to modules array in nuxt.config.ts - Add content block: Shiki dual-theme github-light/github-dark - Add Shiki langs: kotlin, java, typescript, shell, bash, json, vue, html, css - Add experimental.sqliteConnector: 'native' (Node 22 native SQLite) - Add @plugin "@tailwindcss/typography" in main.css
83 lines
1.6 KiB
TypeScript
83 lines
1.6 KiB
TypeScript
export default defineNuxtConfig({
|
|
future: {
|
|
compatibilityVersion: 4
|
|
},
|
|
ssr: true,
|
|
css: ['~/assets/css/main.css'],
|
|
modules: [
|
|
'@nuxt/ui',
|
|
'@nuxtjs/i18n',
|
|
'@nuxt/eslint',
|
|
'@nuxtjs/sitemap',
|
|
'nuxt-gtag',
|
|
'@nuxt/image',
|
|
'@nuxt/content'
|
|
],
|
|
components: [
|
|
{
|
|
path: '~/components',
|
|
pathPrefix: false,
|
|
},
|
|
],
|
|
typescript: {
|
|
strict: true
|
|
},
|
|
colorMode: {
|
|
preference: 'dark',
|
|
fallback: 'dark',
|
|
storage: 'cookie',
|
|
storageKey: 'nuxt-color-mode',
|
|
classSuffix: ''
|
|
},
|
|
site: {
|
|
url: 'https://killiandalcin.fr',
|
|
name: "Killian' DAL-CIN - Developpeur Full Stack"
|
|
},
|
|
i18n: {
|
|
strategy: 'prefix_except_default',
|
|
defaultLocale: 'fr',
|
|
baseUrl: 'https://killiandalcin.fr',
|
|
locales: [
|
|
{ code: 'fr', language: 'fr-FR', file: 'fr.json' },
|
|
{ code: 'en', language: 'en-US', file: 'en.json' },
|
|
],
|
|
langDir: 'locales/',
|
|
detectBrowserLanguage: {
|
|
useCookie: true,
|
|
cookieKey: 'i18n_redirected',
|
|
redirectOn: 'root',
|
|
},
|
|
},
|
|
runtimeConfig: {
|
|
smtpHost: '',
|
|
smtpUser: '',
|
|
smtpPass: '',
|
|
smtpTo: '',
|
|
public: {
|
|
gtag: {
|
|
id: '',
|
|
},
|
|
},
|
|
},
|
|
gtag: {
|
|
id: '',
|
|
enabled: import.meta.env.NODE_ENV === 'production',
|
|
},
|
|
content: {
|
|
build: {
|
|
markdown: {
|
|
highlight: {
|
|
theme: {
|
|
default: 'github-light',
|
|
dark: 'github-dark'
|
|
},
|
|
langs: ['kotlin', 'java', 'typescript', 'shell', 'bash', 'json', 'vue', 'html', 'css']
|
|
}
|
|
}
|
|
},
|
|
experimental: {
|
|
sqliteConnector: 'native'
|
|
}
|
|
}
|
|
})
|