The front end Create-react-app modifies webpack output.publicPath December 13, 2023 by Mark Greenwood No Comments { "homepage": "/edu/" } Copy the code Or: Cross-env needs to be installed: yarn add cross-env { "script": { "build": "cross-env PUBLIC_URL=/edu/ node scripts/build.js"}}Copy the code