File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2626 ],
2727 "dependencies" : {
2828 "@microlink/mql" : " ~0.10.28" ,
29- "next" : " ~12.3 .0" ,
29+ "next" : " ~13.0 .0" ,
3030 "react" : " ~18.2.0" ,
3131 "react-dom" : " ~18.2.0"
3232 },
Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ const NODE_ENV = process.env.NODE_ENV
88const API_ENDPOINT = process . env . API_ENDPOINT || 'https://pro.microlink.io'
99const API_KEY = process . env . API_KEY
1010
11- const origins = process . env . ORIGINS . split ( ',' ) . map ( n => n . trim ( ) )
11+ const origins = process . env . ORIGINS ?. split ( ',' ) . map ( n => n . trim ( ) )
12+
1213const isProduction = NODE_ENV === 'production'
1314
1415const isAllowedDomain =
15- isProduction && origins . length > 0
16+ isProduction && Array . isArray ( origins )
1617 ? origin => origins . includes ( origin )
1718 : ( ) => true
1819
You can’t perform that action at this time.
0 commit comments