File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99 "dev" : " rsbuild dev --open" ,
1010 "pretty" : " prettier --write ." ,
1111 "preview" : " rsbuild preview" ,
12- "env:up " : " gh secret set -f" ,
12+ "env:sync " : " gh secret set -f" ,
1313 "assets:gen" : " bun scripts/assets-gen.ts" ,
1414 "i18n:gen" : " bun scripts/i18n-gen.ts" ,
1515 "format" : " bun scripts/format-src.ts"
Original file line number Diff line number Diff line change 11export const envConfig = {
2- bunEnv : import . meta. env . PUBLIC_BUN_ENV ,
2+ bunEnv : import . meta. env . PUBLIC_BUN_ENV || 'development' ,
33 base :
44 import . meta. env . PUBLIC_BUN_ENV === 'production'
55 ? import . meta. env . PUBLIC_BASE
66 : '' ,
7- apiUrl : import . meta. env . PUBLIC_API ,
8- apiTimeout : Number ( import . meta. env . PUBLIC_API_TIMEOUT ) ,
7+ apiUrl : import . meta. env . PUBLIC_API || 'https://jsonplaceholder.typicode.com' ,
8+ apiTimeout : Number ( import . meta. env . PUBLIC_API_TIMEOUT ) || 8000 ,
99 port : Number ( import . meta. env . PUBLIC_PORT ) || 3000 ,
1010} ;
You can’t perform that action at this time.
0 commit comments