@squiz/render-runtime-lib 1.2.1-alpha.77 → 1.2.1-alpha.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -94777,12 +94777,11 @@ router3.get(/([^/]+)\/([^/]+)(.*)/, async (req, res, _next) => {
94777
94777
  const componentName = req.params[0];
94778
94778
  const version = req.params[1];
94779
94779
  const staticFile = req.params[2];
94780
- const config = ComponentRunner.getConfig();
94781
94780
  const manifestPath = await getManifestPath(componentName, version, isInProductionMode());
94782
94781
  const manifest = await (0, import_component_lib7.loadManifest)(manifestPath);
94783
94782
  if (manifest["static-files"]) {
94784
94783
  const componentStaticFileRoot = manifest["static-files"]["location-root"];
94785
- const staticFilePath = import_path3.default.join(config.dataMountPoint, componentName, version, componentStaticFileRoot);
94784
+ const staticFilePath = import_path3.default.join(manifestPath, "../", componentStaticFileRoot);
94786
94785
  res.sendFile(staticFile, {
94787
94786
  root: staticFilePath,
94788
94787
  dotfiles: "deny",