To update my earlier blog post PUBLIC_URL in React is not dynamic , I have found a solution to it.
The solution is to create a “homepage: /xxxx” in package.json
, then we don’t need to hardcode it in the .env
file.
To update my earlier blog post PUBLIC_URL in React is not dynamic , I have found a solution to it.
The solution is to create a “homepage: /xxxx” in package.json
, then we don’t need to hardcode it in the .env
file.