From e332ca43bd61f7f14d849b08b35e723ff47cb52a Mon Sep 17 00:00:00 2001 From: Ramon Navarro Bosch Date: Sun, 23 Sep 2018 19:49:22 +0200 Subject: [PATCH 01/84] Fixing base path --- src/config/index.js | 2 +- src/helpers/Html/Html.jsx | 11 +++++++---- src/server.jsx | 6 +++++- webpack/webpack.config.client.dev.js | 1 + webpack/webpack.config.client.prod.js | 2 +- webpack/webpack.config.server.dev.js | 2 +- webpack/webpack.config.server.prod.js | 2 +- 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 5ad9a39f33..be2f6e7abd 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -45,7 +45,7 @@ export default defaults( host: 'localhost', port: '4300', apiPath: 'http://localhost:8080/Plone', // for Plone - publicUrl: '/', + publicUrl: '', // apiPath: 'http://localhost:8081/db/web', // for guillotina }, ); diff --git a/src/helpers/Html/Html.jsx b/src/helpers/Html/Html.jsx index 4f09a5a228..f01aed6a69 100644 --- a/src/helpers/Html/Html.jsx +++ b/src/helpers/Html/Html.jsx @@ -41,12 +41,15 @@ export const Html = ({ assets, component, store }) => { {head.link.toComponent()} {head.script.toComponent()} - + {/* styles (will be present only in production with webpack extract text plugin) */} {Object.keys(assets.styles).map(style => ( { /> ))} { /> {Object.keys(assets.javascript).map(script => (