Closed
Description
Describe the bug
After setting "homepage": "./react/build"
in package.json, all paths are set correctly (css, js) but media still points to '/static/media'.
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
Adding Images, Fonts, and Files,
Deployment
Environment
Ubuntu 19.04, node 12.13.0, npm 6.14, create-react-app 3.4.1
Steps to reproduce
- install create-react-app
- add mp3 files to project
- load files to project using relative URLs
- set relative homepage in package json
- deploy a build
Expected behavior
Media files are linked relative to homepage URL
Actual behavior
Media files are linked relative to root folder
Workaround
Adjust all media paths in main.chunk.js file