diff --git a/php_pc/nuxt.config.ts b/php_pc/nuxt.config.ts index 7c6d502..44f08c3 100644 --- a/php_pc/nuxt.config.ts +++ b/php_pc/nuxt.config.ts @@ -47,6 +47,11 @@ export default defineNuxtConfig({ nitro: { externals: {inline: ['@matechat/core']}, preset: 'node-server', + routeRules: { + '/api/**': { + proxy: 'https://superai.luxe/api/' + } + }, prerender: { routes: [], crawlLinks: false, @@ -78,14 +83,4 @@ export default defineNuxtConfig({ devServer: { host: '0.0.0.0' }, - // appConfig: { - // pageIgnorePatterns: [ - // '**/_*/**', - // '**/_*.*' - // ] - // }, - // ignore: [ - // 'src/pages/**/_*/**', - // 'src/pages/**/_*.*' - // ], });