🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"
TypeScript
fix: use vite.server.proxy instead of nitro.devProxy
Connor43bd270f9fbf
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.tsindex 583ff16..5c232d2 100644--- a/frontend/nuxt.config.ts+++ b/frontend/nuxt.config.ts@@ -1,6 +1,6 @@export default defineNuxtConfig({srcDir: 'app/',- ssr: false, // SPA mode+ ssr: false,devtools: { enabled: false },app: {head: {@@ -8,10 +8,12 @@ export default defineNuxtConfig({meta: [{ name: 'viewport', content: 'width=device-width, initial-scale=1' }],},},- nitro: {- devProxy: {- '/api': { target: 'http://localhost:5679', changeOrigin: true },- '/static': { target: 'http://localhost:5679', changeOrigin: true },+ vite: {+ server: {+ proxy: {+ '/api': { target: 'http://localhost:5679', changeOrigin: true },+ '/static': { target: 'http://localhost:5679', changeOrigin: true },+ },},},compatibilityDate: '2025-05-15',