Files
jocay 3c9b65d982 AI 小说工坊:主编 + 作家多模型协作写作应用
- Nuxt 4 + Nuxt UI 4 + AI SDK 7 + Drizzle/SQLite
- 主编规划大纲与章节简报、选派作家;作家流式写入章节文件并实时推送前端
- 逐章确认模式(默认)与自动模式;摘要与故事记忆
- 酒馆角色卡(PNG/JSON,V1-V3)与世界书导入
- 自定义最高优先级系统提示词、审稿/修改/多版本、任务日志与提示词检视
- 模拟 LLM 服务与端到端测试脚本

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 02:04:40 +08:00

26 lines
727 B
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: false },
ssr: false,
modules: ['@nuxt/ui'],
css: ['~/assets/css/main.css'],
app: {
head: {
title: 'AI 小说工坊',
htmlAttrs: { lang: 'zh-CN' }
}
},
runtimeConfig: {
// 数据目录:数据库、章节文件、头像都存放在这里(运行时可用 NOVEL_DATA_DIR 覆盖)
dataDir: './data',
// 可选:API Key 加密密钥(64 位 hex),不填则自动生成到 data/secret.key(运行时可用 NOVEL_SECRET_KEY 覆盖)
secretKey: ''
},
nitro: {
externals: {
external: ['better-sqlite3']
}
}
})