From 49092780e38f5f5dbe2a5c54e31a19fa70674218 Mon Sep 17 00:00:00 2001 From: mewhz Date: Sat, 6 Sep 2025 14:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E4=BF=AE=E6=94=B9=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=8E=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/.env.dev.example | 2 +- frontend_nuxt/.env.staging.example | 2 +- frontend_nuxt/nuxt.config.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) 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: {