File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,12 @@ const API_Host = isServer()
12
12
: 'http://localhost:3000'
13
13
: globalThis . location . origin ;
14
14
15
+ const { BUILDING } = process . env ;
16
+
15
17
export const larkClient = new HTTPClient ( {
16
- baseURI : `${ API_Host } /api/Lark/` ,
18
+ baseURI : BUILDING
19
+ ? 'https://open.feishu.cn/open-apis/'
20
+ : `${ API_Host } /api/Lark/` ,
17
21
responseType : 'json' ,
18
22
} ) ;
19
23
Original file line number Diff line number Diff line change 53
53
"scripts" : {
54
54
"prepare" : " husky install" ,
55
55
"dev" : " next dev" ,
56
- "build" : " next build" ,
57
- "export" : " next build && next export" ,
56
+ "build" : " BUILDING=1 next build" ,
57
+ "export" : " BUILDING=1 next build && next export" ,
58
58
"start" : " next start" ,
59
59
"lint" : " next lint" ,
60
60
"test" : " lint-staged && npm run lint" ,
You can’t perform that action at this time.
0 commit comments