cms-react-boilerplate icon indicating copy to clipboard operation
cms-react-boilerplate copied to clipboard

Files overwritten in development cause 404 errors on published pages

Open tb9-Mason opened this issue 3 years ago • 0 comments

I've been working with this react boilerplate for the past few days, it was very easy to get a project started and get a custom module in my drag and drop interface. Thanks for that!

The issue I'm coming across is that the upload (auto or through a manual deployment) overwrites the file I'm using and starts causing 404 errors. It looks like after initially adding the module and publishing the page, the minified main.min.js file is being requested through cdn2.hubspot.net. If I then make a change in my local environment that triggers the auto upload, the unminified main.js file is being requested through [myaccount].hubspotpagebuilder.com. This file can't be found and causes 404 errors even after subsequent publishes. The only way I can find to fix it is to remove the module from the page, re-add the module, then publish again.

I should note that the drag and drop pagebuilder interface always displays the most up-to-date version of the react module I'm working on.

I understand that this may be a workflow issue on my part. Is there some documentation on the preferred workflow when using this repo? I don't want to break existing pages when making updates to a react custom module.

Thanks!

tb9-Mason avatar Nov 04 '22 18:11 tb9-Mason