mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-23 21:51:48 +01:00
Eliminated the outdated 'preview' API configuration from Nuxt Content settings to align with the latest standards. This improves maintainability and prevents potential issues with deprecated features.
167 lines
2.6 KiB
TypeScript
167 lines
2.6 KiB
TypeScript
export default defineNuxtConfig({
|
|
future: { compatibilityVersion: 4 },
|
|
|
|
// Nuxt App
|
|
app: {
|
|
pageTransition: { name: 'page', mode: 'out-in' },
|
|
head: {
|
|
templateParams: {
|
|
separator: '•',
|
|
},
|
|
},
|
|
},
|
|
|
|
css: ['~/assets/css/main.css'],
|
|
|
|
// Nuxt Modules
|
|
modules: [
|
|
'@nuxthub/core',
|
|
'@nuxt/ui',
|
|
'@nuxt/content',
|
|
'@vueuse/nuxt',
|
|
'@nuxtjs/google-fonts',
|
|
'@nuxt/image',
|
|
'@nuxtjs/i18n',
|
|
],
|
|
|
|
// Nuxt Hub
|
|
hub: {
|
|
cache: true,
|
|
kv: true,
|
|
database: true,
|
|
analytics: true,
|
|
},
|
|
|
|
// Nuxt Content
|
|
content: {
|
|
build: {
|
|
markdown: {
|
|
highlight: {
|
|
theme: 'github-dark',
|
|
},
|
|
remarkPlugins: {
|
|
'remark-math': {},
|
|
},
|
|
rehypePlugins: {
|
|
'rehype-katex': {
|
|
output: 'mathml',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
// Nuxt UI
|
|
ui: {
|
|
theme: {
|
|
colors: [
|
|
'white',
|
|
'black',
|
|
'cyan',
|
|
'gray',
|
|
'zinc',
|
|
'red',
|
|
'orange',
|
|
'amber',
|
|
'green',
|
|
'emerald',
|
|
'sky',
|
|
'blue',
|
|
'purple',
|
|
'pink',
|
|
'neutral',
|
|
],
|
|
},
|
|
},
|
|
|
|
plugins: ['~/plugins/location.server'],
|
|
|
|
// Nuxt Color Mode
|
|
colorMode: {
|
|
preference: 'system',
|
|
fallback: 'light',
|
|
},
|
|
|
|
// Nuxt Devtools
|
|
devtools: {
|
|
enabled: true,
|
|
timeline: { enabled: true },
|
|
},
|
|
|
|
// Nuxt I18N
|
|
i18n: {
|
|
strategy: 'no_prefix',
|
|
locales: [
|
|
{
|
|
label: 'English',
|
|
code: 'en',
|
|
language: 'en-EN',
|
|
icon: 'i-twemoji-flag-united-kingdom',
|
|
},
|
|
{
|
|
label: 'Français',
|
|
code: 'fr',
|
|
language: 'fr-FR',
|
|
icon: 'i-twemoji-flag-france',
|
|
},
|
|
{
|
|
label: 'Español',
|
|
code: 'es',
|
|
language: 'es-ES',
|
|
icon: 'i-twemoji-flag-spain',
|
|
},
|
|
],
|
|
defaultLocale: 'en',
|
|
},
|
|
|
|
// Nuxt Icon
|
|
icon: {
|
|
serverBundle: 'remote',
|
|
clientBundle: {
|
|
scan: true,
|
|
},
|
|
},
|
|
|
|
// Nuxt Google Fonts
|
|
googleFonts: {
|
|
display: 'swap',
|
|
families: {
|
|
'Inter': [400, 500, 600, 700, 800, 900],
|
|
'Sofia Sans': [400],
|
|
'DM Sans': [400, 500, 600, 700, 800, 900],
|
|
'Dancing Script': [400, 700],
|
|
},
|
|
},
|
|
|
|
// Nitro
|
|
nitro: {
|
|
experimental: {
|
|
websocket: true,
|
|
openAPI: true,
|
|
},
|
|
},
|
|
|
|
// Nuxt Env
|
|
runtimeConfig: {
|
|
discord: {
|
|
userId: '',
|
|
id: '',
|
|
token: '',
|
|
},
|
|
wakatime: {
|
|
userId: '',
|
|
coding: '',
|
|
editors: '',
|
|
languages: '',
|
|
os: '',
|
|
},
|
|
public: {
|
|
i18n: {
|
|
baseUrl: '',
|
|
},
|
|
},
|
|
},
|
|
|
|
compatibilityDate: '2025-01-28',
|
|
})
|