Browse Source

adding path variable

master
Martin McKeaveney 4 years ago
parent
commit
cab86d2563
  1. 10
      packages/server/src/utilities/fileSystem/index.js

10
packages/server/src/utilities/fileSystem/index.js

@ -286,14 +286,18 @@ exports.getComponentLibraryManifest = async library => {
}
let resp
let path
try {
// Try to load the manifest from the new file location
const path = join(appId, filename)
path = join(appId, filename)
resp = await retrieve(ObjectStoreBuckets.APPS, path)
} catch (error) {
console.error(`component-manifest-objectstore=failed appId=${appId}`, error)
console.error(
`component-manifest-objectstore=failed appId=${appId} path=${path}`,
error
)
// Fallback to loading it from the old location for old apps
const path = join(appId, "node_modules", library, "package", filename)
path = join(appId, "node_modules", library, "package", filename)
resp = await retrieve(ObjectStoreBuckets.APPS, path)
}
if (typeof resp !== "string") {

Loading…
Cancel
Save