- 移除 Motia Streams 实时通信,改用 3 秒轮询 - 简化前端代码,移除冗余组件 - 简化后端架构,准备 FastAPI 重构 - 更新 pixi.toml 环境配置 - 保留 bttoxin_digger_v5_repro 作为参考文档 Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
796 B
TypeScript
42 lines
796 B
TypeScript
import { defineConfig } from '@motia/core'
|
|
|
|
export default defineConfig({
|
|
// Server configuration
|
|
server: {
|
|
port: 3001,
|
|
host: '0.0.0.0',
|
|
},
|
|
|
|
// Stream persistence configuration
|
|
streams: {
|
|
persistence: {
|
|
enabled: true,
|
|
adapter: 'file',
|
|
options: {
|
|
directory: './data/streams',
|
|
},
|
|
},
|
|
},
|
|
|
|
// CORS configuration for frontend
|
|
cors: {
|
|
origin: ['http://localhost:5173', 'http://localhost:3000'],
|
|
credentials: true,
|
|
},
|
|
|
|
// File upload configuration
|
|
upload: {
|
|
maxFileSize: 100 * 1024 * 1024, // 100MB
|
|
allowedExtensions: ['.fna'],
|
|
uploadDir: './data/uploads',
|
|
},
|
|
|
|
// Task configuration
|
|
tasks: {
|
|
maxConcurrent: 4,
|
|
resultRetentionDays: 30,
|
|
runsDir: '../../runs', // Relative to motia-backend
|
|
|
|
},
|
|
})
|