Ionic React public assets folder

React app uses assets folder inside src folder (Normally you would put images into the src and import them in code to get their paths.).
Ionic start creates public folder outside src.
How will I work with images, fonts, etc in this app if React – Module not found: You attempted to import …/…/public/assets/images/…jpg which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.

Reference the asset folder at the root level /asset/...

/* Custom font declaration */
@font-face {
  font-family: "Airbnb Cereal App";
  src: url("/assets/fonts/AirbnbCereal-Black.ttf"); //mine
}

* {
  font-family: "Airbnb Cereal App";
}

/* Custom background */
.backgroundOverride {
  --background: none;
  background-image: url("/assets/shapes.svg");
  background-size: cover;
  background-position: center center;
}

Thanks
I’ve solved this problem via
“–background”: “url(”+ JSON.stringify(${process.env.PUBLIC_URL}/assets/images/background/login-bg.jpg) + “)”
This is a redundant way.