🔧 修改前端配置文件与环境变量

This commit is contained in:
mewhz
2025-09-06 14:48:17 +08:00
parent 6570cfd677
commit 49092780e3
3 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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: {