mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-09 03:27:32 +08:00
🔧 修改前端配置文件与环境变量
This commit is contained in:
@@ -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_WEBSOCKET_URL=https://127.0.0.1:8082
|
||||||
NUXT_PUBLIC_WEBSITE_BASE_URL=http://localhost:3000
|
NUXT_PUBLIC_WEBSITE_BASE_URL=http://localhost:3000
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
NUXT_PUBLIC_API_BASE_URL=https://staging.open-isle.com
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
import { defineNuxtConfig } from 'nuxt/config'
|
import { defineNuxtConfig } from 'nuxt/config'
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
devServer: {
|
||||||
|
host: '0.0.0.0',
|
||||||
|
port: 3000
|
||||||
|
},
|
||||||
ssr: true,
|
ssr: true,
|
||||||
modules: ['@nuxt/image'],
|
modules: ['@nuxt/image'],
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
|
|||||||
Reference in New Issue
Block a user