Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supplement config info #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const OSS_Config = {
### 配置前端端服务地址

在根目录的config文件夹中的server文件中

该地址为 后端 manager 服务地址 exp http://{manager-host}:{manager:port}
```js
const FE_Work_Base_URL = {
development: '工作台开发环境地址',
Expand All @@ -49,7 +49,7 @@ export const OSS_Config = {
### 配置后端服务地址

在根目录的config文件夹中的server文件中

permission 工程地址 exp http://{permission-host}:{permission:port}
```js
const RD_BaseURL = {
development: '开发环境地址',
Expand All @@ -61,6 +61,7 @@ export const OSS_Config = {
### 配置存/取Cookie 的Domain

在根目录的config文件夹中的server文件中,主要用于cookie域相关数据的共享.例如已登录状态.
需要与fe-open client.js 配置相同主域名

```js
const DOMAIN = {
Expand Down
6 changes: 3 additions & 3 deletions config/server.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// 你的app版本
export const APP_VERSION = '1.0.0'

// 后端http接口地址
// 后端http接口地址 permission 工程地址 exp http://{permission-host}:{permission:port}
export const RD_BaseURL = {
development: '开发环境地址',
test: '测试环境地址',
production: '线上环境地址',
};

// 当前主域 (主要用于储存cookie)
// 当前主域 (主要用于储存cookie) 需要与fe-open client.js 配置相同主域名
export const DOMAIN = {
development: '',
test: '测试环境主域',
production: '线上环境主域',
}

// 前端工作台页面地址
// 前端工作台页面地址 后端 manager 服务地址 exp http://{manager-host}:{manager:port}
export const FE_Work_Base_URL = {
development: '工作台开发环境地址',
test: '工作台测试环境地址',
Expand Down