|
- // https://nuxt.com/docs/api/configuration/nuxt-config
- export default defineNuxtConfig({
- compatibilityDate: '2025-07-15',
- devtools: { enabled: true },
-
- devServer: { port: 6888, host: '0.0.0.0' },
-
- modules: ['@nuxt/ui'],
-
- css: ['~/assets/css/main.css'],
-
- // 禁用 @nuxt/fonts 远程字体提供商(内网环境无法访问 Google Fonts)
- ui: {
- fonts: false,
- },
-
- // 运行时公开配置(客户端可访问)
- runtimeConfig: {
- public: {
- // ThinkJS ai_api 地址,按环境覆盖
- apiBase: process.env.API_BASE || 'http://192.168.31.168:16888',
- },
- },
-
- // SSR / SEO
- ssr: true,
-
- app: {
- head: {
- title: '奇想宇宙',
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { name: 'description', content: 'AI 问答、AI 绘画、AI 音乐,探索无限可能' },
- { name: 'keywords', content: 'AI,人工智能,Midjourney,AI绘画,AI音乐,AI问答' },
- ],
- link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
- },
- },
- })
|