diff --git a/frontend_nuxt/.env.dev.example b/frontend_nuxt/.env.dev.example index 4f6562719..a7ca3ee34 100644 --- a/frontend_nuxt/.env.dev.example +++ b/frontend_nuxt/.env.dev.example @@ -1,5 +1,5 @@ ; 本地部署后端 -NUXT_PUBLIC_API_BASE_URL=https://127.0.0.1:8081 +NUXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8080 NUXT_PUBLIC_WEBSOCKET_URL=https://127.0.0.1:8082 NUXT_PUBLIC_WEBSITE_BASE_URL=http://localhost:3000 diff --git a/frontend_nuxt/.env.staging.example b/frontend_nuxt/.env.staging.example index b020df6fb..0cc8ef140 100644 --- a/frontend_nuxt/.env.staging.example +++ b/frontend_nuxt/.env.staging.example @@ -1,5 +1,5 @@ ; 本地部署后端 -; NUXT_PUBLIC_API_BASE_URL=https://127.0.0.1:8081 +; NUXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8080 ; 预发环境后端 NUXT_PUBLIC_API_BASE_URL=https://staging.open-isle.com diff --git a/frontend_nuxt/nuxt.config.ts b/frontend_nuxt/nuxt.config.ts index ec01e7cb4..383014822 100644 --- a/frontend_nuxt/nuxt.config.ts +++ b/frontend_nuxt/nuxt.config.ts @@ -1,6 +1,10 @@ import { defineNuxtConfig } from 'nuxt/config' export default defineNuxtConfig({ + devServer: { + host: '0.0.0.0', + port: 3000 + }, ssr: true, modules: ['@nuxt/image'], runtimeConfig: {