Files
artsite/nuxt.config.ts
Arthur DANJOU 6e28fdd17a feat: integrate new AI tools and enhance API functionality
- Added '@nuxtjs/mdc' module to nuxt.config.ts for improved UI components.
- Configured MDC settings to disable anchor links for headings.
- Updated API proxy settings to include '/api/uses' and a general '/api/' endpoint.
- Introduced new dependencies for AI SDKs and tools in package.json.
- Created a new chat API endpoint to handle AI interactions with various tools.
- Implemented utility functions for activity tracking, resource reading, resume retrieval, statistics, status monitoring, and categorized tool usage.
- Updated social links in types/index.ts to redirect through a custom domain.
- Updated worker configuration to include AI binding for Cloudflare.
2025-12-19 17:57:43 +01:00

153 lines
2.3 KiB
TypeScript

export default defineNuxtConfig({
modules: [
'@nuxt/ui',
'@nuxtjs/mdc',
'@nuxt/content',
'@nuxthub/core',
'@nuxt/eslint',
'@vueuse/nuxt',
'@nuxtjs/i18n',
'nuxt-studio'
],
devtools: {
enabled: true
},
app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
templateParams: {
separator: '•'
}
},
rootAttrs: {
class: 'bg-[var(--ui-bg)]'
}
},
css: ['~/assets/css/main.css'],
colorMode: {
preference: 'system',
fallback: 'light'
},
mdc: {
headings: {
anchorLinks: false
}
},
ui: {
theme: {
colors: [
'white',
'black',
'cyan',
'gray',
'zinc',
'red',
'orange',
'amber',
'green',
'emerald',
'sky',
'blue',
'purple',
'pink',
'neutral'
]
}
},
runtimeConfig: {
api: {
url: ''
},
public: {
i18n: {
baseUrl: ''
}
}
},
routeRules: {
'/api/activity': {
proxy: `${process.env.NUXT_API_URL}/api/activity`
},
'/api/stats': {
proxy: `${process.env.NUXT_API_URL}/api/stats`
},
'/api/uses': {
proxy: `${process.env.NUXT_API_URL}/api/uses`
},
'/api/': {
proxy: `${process.env.NUXT_API_URL}/api/`
}
},
experimental: {
viewTransition: true
},
compatibilityDate: '2025-12-13',
nitro: {
preset: 'cloudflare_pages',
prerender: {
routes: ['/'],
crawlLinks: true
}
},
hub: {
cache: true,
db: 'sqlite'
},
eslint: {
config: {
stylistic: {
quotes: 'single',
commaDangle: 'never'
}
}
},
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'
},
studio: {
route: '/studio',
repository: {
provider: 'github',
owner: 'ArthurDanjou',
repo: 'artsite',
branch: 'master'
}
}
})