Skip to content

Commit

Permalink
Revert "(fix) Fix the URLs to load importmap and routes registry JSON" (
Browse files Browse the repository at this point in the history
  • Loading branch information
vasharma05 authored Sep 6, 2024
1 parent 360bb76 commit 5b64d34
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/shell/esm-app-shell/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,9 @@ const openmrsEnvironment = process.env.OMRS_ENV || process.env.NODE_ENV || '';
const openmrsOffline = process.env.OMRS_OFFLINE === 'enable';
const openmrsDefaultLocale = process.env.OMRS_ESM_DEFAULT_LOCALE || 'en';
const openmrsImportmapDef = process.env.OMRS_ESM_IMPORTMAP;
const openmrsImportmapUrl = process.env.OMRS_ESM_IMPORTMAP_URL
? !process.env.OMRS_ESM_IMPORTMAP_URL.startsWith('/') && !process.env.OMRS_ESM_IMPORTMAP_URL.startsWith('http')
? process.env.OMRS_ESM_IMPORTMAP_URL
: `${openmrsPublicPath}/${process.env.OMRS_ESM_IMPORTMAP_URL}`
: `${openmrsPublicPath}/importmap.json`;
const openmrsImportmapUrl = process.env.OMRS_ESM_IMPORTMAP_URL || `${openmrsPublicPath}/importmap.json`;
const openmrsRoutesDef = process.env.OMRS_ROUTES;
const openmrsRoutesUrl = process.env.OMRS_ROUTES_URL
? !process.env.OMRS_ROUTES_URL.startsWith('/') && !process.env.OMRS_ROUTES_URL.startsWith('http')
? process.env.OMRS_ROUTES_URL
: `${openmrsPublicPath}/${process.env.OMRS_ROUTES_URL}`
: `${openmrsPublicPath}/routes.registry.json`;
const openmrsRoutesUrl = process.env.OMRS_ROUTES_URL || `${openmrsPublicPath}/routes.registry.json`;
const openmrsCoreApps = process.env.OMRS_ESM_CORE_APPS_DIR || resolve(__dirname, '../../apps');
const openmrsConfigUrls = (process.env.OMRS_CONFIG_URLS || '')
.split(';')
Expand Down

0 comments on commit 5b64d34

Please sign in to comment.