@crowdin/app-project-module 0.98.0-cf-14 → 0.98.0-cf-15
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/out/util/static-files.js +1 -1
- package/package.json +1 -1
package/out/util/static-files.js
CHANGED
|
@@ -52,7 +52,7 @@ function serveStatic(config, staticPath) {
|
|
|
52
52
|
if ((_a = config.assetsConfig) === null || _a === void 0 ? void 0 : _a.fetcher) {
|
|
53
53
|
const assetsFetcher = config.assetsConfig.fetcher;
|
|
54
54
|
return (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const assetPath =
|
|
55
|
+
const assetPath = `/${staticPath}/${req.path}`.replace(/\/+/g, '/');
|
|
56
56
|
yield proxyAssetsResponse(assetsFetcher, assetPath, config.baseUrl, req, res, next);
|
|
57
57
|
});
|
|
58
58
|
}
|
package/package.json
CHANGED