AI-News/frontend/nuxt.config.ts
2025-12-04 10:04:21 +08:00

17 lines
403 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// nuxt.config.ts
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
srcDir: 'app',
// 运行时配置:前端可读
runtimeConfig: {
public: {
// 默认指向同源 /api部署时可以通过 NUXT_PUBLIC_API_BASE 覆盖
apiBase: process.env.NUXT_PUBLIC_API_BASE || 'http://localhost:8004/api',
},
},
compatibilityDate: '2025-10-29',
})