Skip to content

Commit

Permalink
Revert "(fix) Fix logic for prefixing importmaps and routes"
Browse files Browse the repository at this point in the history
This reverts commit ca03670.
  • Loading branch information
ibacher committed Sep 5, 2024
1 parent ca03670 commit 97fbc82
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/shell/esm-app-shell/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +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 97fbc82

Please sign in to comment.