diff --git a/apps/designer/.env.development b/apps/designer/.env.development index dde3f96..6eedc78 100644 --- a/apps/designer/.env.development +++ b/apps/designer/.env.development @@ -8,4 +8,10 @@ VITE_BASE_URL = / VITE_PORT = 10011 # VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/' -VITE_DEBUG_MODE = true \ No newline at end of file +VITE_DEBUG_MODE = true + + + +Y_CODE_PLATFORM_URL = 'https://localhost:10010/' +Y_CODE_DESIGNER_URL = 'https://localhost:10011/' +Y_CODE_RENDERER_URL = 'https://localhost:10012/' \ No newline at end of file diff --git a/apps/designer/.env.production b/apps/designer/.env.production index aa264ed..a265462 100644 --- a/apps/designer/.env.production +++ b/apps/designer/.env.production @@ -5,3 +5,8 @@ VITE_NODE_ENV = 'production' VITE_BASE_URL = / VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/' + + +Y_CODE_PLATFORM_URL = 'https://y-code-platform.shiyuegame.com/' +Y_CODE_DESIGNER_URL = 'https://y-code-designer.shiyuegame.com/' +Y_CODE_RENDERER_URL = 'https://y-code-renderer.shiyuegame.com/' diff --git a/apps/designer/.env.staging b/apps/designer/.env.staging index 81b616a..497c794 100644 --- a/apps/designer/.env.staging +++ b/apps/designer/.env.staging @@ -5,4 +5,8 @@ VITE_NODE_ENV = 'staging' VITE_BASE_URL = / # base api url -VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' \ No newline at end of file +VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' + +Y_CODE_PLATFORM_URL = 'https://y-code-platform-pre.shiyue.com/' +Y_CODE_DESIGNER_URL = 'https://y-code-designer-pre.shiyue.com/' +Y_CODE_RENDERER_URL = 'https://y-code-renderer-pre.shiyue.com/' diff --git a/apps/designer/vite.config.ts b/apps/designer/vite.config.ts index 568e616..8a00ceb 100644 --- a/apps/designer/vite.config.ts +++ b/apps/designer/vite.config.ts @@ -35,7 +35,7 @@ const config = createViteConfig({ export default defineConfig(({ mode }) => { console.log('mode', mode); // 加载环境变量(支持 .env.development/.env.production) - const env = loadEnv(mode, process.cwd(), ['VITE_', 'VTJ_', 'SY_']); + const env = loadEnv(mode, process.cwd(), ['VITE_', 'VTJ_', 'SY_', 'Y_CODE_']); return { ...config, server: { diff --git a/apps/platform/.env.development b/apps/platform/.env.development index 341ea87..cd83752 100644 --- a/apps/platform/.env.development +++ b/apps/platform/.env.development @@ -8,4 +8,9 @@ VITE_BASE_URL = / VITE_PORT = 10010 # VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/' -VITE_DEBUG_MODE = true \ No newline at end of file +VITE_DEBUG_MODE = true + + +Y_CODE_PLATFORM_URL = 'https://localhost:10010/' +Y_CODE_DESIGNER_URL = 'https://localhost:10011/' +Y_CODE_RENDERER_URL = 'https://localhost:10012/' \ No newline at end of file diff --git a/apps/platform/.env.production b/apps/platform/.env.production index aa264ed..c44917a 100644 --- a/apps/platform/.env.production +++ b/apps/platform/.env.production @@ -5,3 +5,7 @@ VITE_NODE_ENV = 'production' VITE_BASE_URL = / VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/' + +Y_CODE_PLATFORM_URL = 'https://y-code-platform.shiyuegame.com/' +Y_CODE_DESIGNER_URL = 'https://y-code-designer.shiyuegame.com/' +Y_CODE_RENDERER_URL = 'https://y-code-renderer.shiyuegame.com/' diff --git a/apps/platform/.env.staging b/apps/platform/.env.staging index 81b616a..497c794 100644 --- a/apps/platform/.env.staging +++ b/apps/platform/.env.staging @@ -5,4 +5,8 @@ VITE_NODE_ENV = 'staging' VITE_BASE_URL = / # base api url -VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' \ No newline at end of file +VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' + +Y_CODE_PLATFORM_URL = 'https://y-code-platform-pre.shiyue.com/' +Y_CODE_DESIGNER_URL = 'https://y-code-designer-pre.shiyue.com/' +Y_CODE_RENDERER_URL = 'https://y-code-renderer-pre.shiyue.com/' diff --git a/apps/renderer/.env.development b/apps/renderer/.env.development index 8c539dc..02db692 100644 --- a/apps/renderer/.env.development +++ b/apps/renderer/.env.development @@ -10,4 +10,8 @@ VITE_PORT = 10010 VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/' -VITE_DEBUG_MODE = true \ No newline at end of file +VITE_DEBUG_MODE = true + +Y_CODE_PLATFORM_URL = 'https://localhost:10010/' +Y_CODE_DESIGNER_URL = 'https://localhost:10011/' +Y_CODE_RENDERER_URL = 'https://localhost:10012/' \ No newline at end of file diff --git a/apps/renderer/.env.production b/apps/renderer/.env.production index aa264ed..c44917a 100644 --- a/apps/renderer/.env.production +++ b/apps/renderer/.env.production @@ -5,3 +5,7 @@ VITE_NODE_ENV = 'production' VITE_BASE_URL = / VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/' + +Y_CODE_PLATFORM_URL = 'https://y-code-platform.shiyuegame.com/' +Y_CODE_DESIGNER_URL = 'https://y-code-designer.shiyuegame.com/' +Y_CODE_RENDERER_URL = 'https://y-code-renderer.shiyuegame.com/' diff --git a/apps/renderer/.env.staging b/apps/renderer/.env.staging index 4bd5f12..5288d6f 100644 --- a/apps/renderer/.env.staging +++ b/apps/renderer/.env.staging @@ -8,4 +8,8 @@ VITE_BASE_URL = / VITE_PORT = 10010 # base api url -VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' \ No newline at end of file +VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' + +Y_CODE_PLATFORM_URL = 'https://y-code-platform-pre.shiyue.com/' +Y_CODE_DESIGNER_URL = 'https://y-code-designer-pre.shiyue.com/' +Y_CODE_RENDERER_URL = 'https://y-code-renderer-pre.shiyue.com/' \ No newline at end of file