File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 22 "name" : " pushy-admin" ,
33 "private" : true ,
44 "scripts" : {
5- "dev" : " rsbuild dev" ,
6- "dev:prod " : " NODE_ENV=production rsbuild dev" ,
5+ "dev" : " PUBLIC_API=https://update.reactnative.cn/api rsbuild dev" ,
6+ "dev:local " : " rsbuild dev" ,
77 "build" : " NODE_ENV=production rsbuild build" ,
88 "preview" : " rsbuild preview" ,
99 "lint" : " tsc --noEmit & biome check --write ."
1010 },
11- "type" : " module" ,
1211 "dependencies" : {
1312 "@ant-design/icons" : " ^6.1.0" ,
1413 "@ant-design/v5-patch-for-react-19" : " ^1.0.3" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const SERVER = {
2020 'https://update.reactnative.cn/api' ,
2121 // "https://5.rnupdate.online/api",
2222 ]
23- : [ 'http://localhost:9000' ] ,
23+ : [ process . env . PUBLIC_API ?? 'http://localhost:9000' ] ,
2424} ;
2525
2626// const baseUrl = `http://localhost:9000`;
You can’t perform that action at this time.
0 commit comments