Create React App: Setting OG image with PUBIC_URL does not work

I am trying to set og-image to CRA app and I am doing like this:

An image is inside pubic folder, but the image does not show on op.
When I do http://localhost:3000/og-images.png, it works. However, I do not want to set fixed value here.

What I am doing wrong?

Edit: my folder structure:


  • public
    • index.html
    • favicon.ico
    • og-image.png
  • src