Skip to content

Commit d511970

Browse files
arbrandesclaude
andcommitted
fix: update dev server config for new endpoint and flexibility
Rename mfe_config endpoint to frontend_site_config, use relative URLs in site configs, and bind dev server to 0.0.0.0 for broader compatibility. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b66e20d commit d511970

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

shell/site.config.dev.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const siteConfig: SiteConfig = {
4343

4444
// API URLs
4545
lmsBaseUrl: 'http://local.openedx.io:8000',
46-
runtimeConfigJsonUrl: 'http://apps.local.openedx.io:8080/api/mfe_config/v1',
46+
runtimeConfigJsonUrl: '/api/frontend_site_config/v1/',
4747
};
4848

4949
export default siteConfig;

test-site/site.config.build.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const siteConfig: SiteConfig = {
1313
logoutUrl: 'http://local.openedx.io:8000/logout',
1414

1515
environment: EnvironmentTypes.PRODUCTION,
16-
runtimeConfigJsonUrl: 'http://apps.local.openedx.io:8080/api/mfe_config/v1',
16+
runtimeConfigJsonUrl: '/api/frontend_site_config/v1/',
1717
apps: [
1818
shellApp,
1919
headerApp,

test-site/site.config.dev.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const siteConfig: SiteConfig = {
1313
logoutUrl: 'http://local.openedx.io:8000/logout',
1414

1515
environment: EnvironmentTypes.DEVELOPMENT,
16-
runtimeConfigJsonUrl: 'http://apps.local.openedx.io:8080/api/mfe_config/v1',
16+
runtimeConfigJsonUrl: '/api/frontend_site_config/v1/',
1717
apps: [
1818
shellApp,
1919
headerApp,

tools/webpack/common-config/dev/getDevServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export default function getDevServer(): Configuration {
1313
index: path.join(getPublicPath(), 'index.html'),
1414
disableDotRule: true,
1515
},
16-
host: 'apps.local.openedx.io',
16+
host: '0.0.0.0',
1717
hot: true,
1818
port: process.env.PORT ?? 8080,
1919
proxy: [
2020
{
21-
context: ['/api/mfe_config/v1'],
21+
context: ['/api/frontend_site_config/v1'],
2222
target: 'http://local.openedx.io:8000',
2323
changeOrigin: true,
2424
}

0 commit comments

Comments
 (0)