Skip to content

Commit

Permalink
fix for bundle.js rename issue
Browse files Browse the repository at this point in the history
  • Loading branch information
singularity15 committed Dec 25, 2020
1 parent 6a5c5fa commit 435c1d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atoll",
"version": "0.32.0",
"version": "0.32.1",
"author": {
"name": "Kevin Berry",
"email": "[email protected]"
Expand Down
3 changes: 2 additions & 1 deletion src/server/middleware/serverRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const serverRenderer: any = () => (req: express.Request & { store: Store }, res:
const sharedBundleCss = res.locals.assetPath("shared-bundle.css");
const sharedBundleCssPath = remapAssetPath(sharedBundleCss);
const bundleJsPath = remapAssetPath(res.locals.assetPath("bundle.js"));
const basePath = bundleJsPath.replace("/bundle.js", "");
const idx = bundleJsPath.lastIndexOf("/");
const basePath = idx < 0 ? bundleJsPath : bundleJsPath.substr(0, idx);
const favIconPath = `${basePath}/favicon.png`;

return res.send(
Expand Down

0 comments on commit 435c1d6

Please sign in to comment.