[Deploy Previews] Javascript is not used when deploying a preview before a branch merge

Hi guys,

I recently began to use the Deploy Previews functionality, and have noticed that my js files are not used. However if I complete the merge on master, the final website works great.

Have I missed something in the docs about this behavior ?

I am not sure what more I can say, let me know !

hi, can you clarify what you mean by “not used”? Is there any errors showing in your browser console? do you get a 404?

Hi there,

Yes the only error showing in my browser console is:

Loading failed for the <script> with source “<domain-name>js/main.js”

I feel like this is due to a / missing between the domain name and the path to my js file, however it is resolved correctly on localhost and when master is deployed after going through with the merge.

Thanks for your help !