File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/tools/testTools/src Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,17 @@ import { checkArgs, populateEnvironment } from "@dev/build-tools";
88// eslint-disable-next-line @typescript-eslint/naming-convention
99export const getGlobalConfig = ( overrideConfig : { root ?: string ; baseUrl ?: string ; usesDevHost : boolean } = { usesDevHost : false } ) => {
1010 populateEnvironment ( ) ;
11+ let baseUrl = undefined ;
12+ if ( overrideConfig . usesDevHost ) {
13+ baseUrl = ( checkArgs ( [ "--enable-https" ] , true ) ? "https" : "http" ) + "://localhost:1338" ;
14+ } else {
15+ baseUrl = process . env . CDN_BASE_URL || ( checkArgs ( [ "--enable-https" ] , true ) ? "https" : "http" ) + "://localhost:1337" ;
16+ }
17+
1118 return {
1219 snippetUrl : "https://snippet.babylonjs.com" ,
1320 pgRoot : "https://playground.babylonjs.com" ,
14- baseUrl : process . env . CDN_BASE_URL || ( checkArgs ( [ "--enable-https" ] , true ) ? "https" : "http" ) + "://localhost:" + ( overrideConfig . usesDevHost ? 1338 : 1337 ) ,
21+ baseUrl : baseUrl ,
1522 root : "https://cdn.babylonjs.com" ,
1623 assetsUrl : "https://assets.babylonjs.com" ,
1724 ...overrideConfig ,
You can’t perform that action at this time.
0 commit comments