File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tutormfe/templates/mfe/build/mfe Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const appName = parsedEnv.APP_ID || path.basename(currentDir).replace('frontend-
3131const publicPath = parsedEnv . PUBLIC_PATH || '/' + appName + '/' ;
3232const dev = parsedEnv . NODE_ENV === 'development' ;
3333const prod = ! dev ;
34+ const isArm64 = ( process . arch === 'arm64' ) ;
3435parsedEnv . APP_ID = appName ;
3536parsedEnv . PUBLIC_PATH = publicPath ;
3637parsedEnv . MFE_CONFIG_API_URL = prod ? '/api/mfe_config/v1' : 'http://local.openedx.io:8000/api/mfe_config/v1' ;
@@ -65,9 +66,11 @@ const config = defineConfig({
6566 }
6667 } ,
6768 performance : {
68- // We enable caching everywhere, even if it's unnecessary in some places. The
69- // negative impact on performance should be minor.
70- buildCache : true ,
69+ // We enable caching everywhere except on amd64, even if it's unnecessary in
70+ // some places. The negative impact on performance should be minor.
71+ // The reason we disable it on arm64 is that build is failing on this platform
72+ // https://github.com/web-infra-dev/rspack/issues/10118
73+ buildCache : isArm64 ? false : true ,
7174 } ,
7275 server : {
7376 base : publicPath ,
You can’t perform that action at this time.
0 commit comments