-
SummaryI see that my default 'out' folder builds fine on my local machine. So I have but when I deploy and build on GitHub it creates a public folder with images inside that GitHub/ So this breaks my images on GitHub Pages. I can't see how this is happening. I used the default yarn build script. Any ideas? Yes I could use an environment variable to add this 'public/' to all image url's but it feels wrong and lead to future bugs. Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Don't you have to set a |
Beta Was this translation helpful? Give feedback.
-
I think I am getting confused that the files I see in github are not what is built so then the question maybe just that I am using an absolute file path for the images. |
Beta Was this translation helpful? Give feedback.
I think I am getting confused that the files I see in github are not what is built so then the question maybe just that I am using an absolute file path for the images.
Yes this was it. Silly me. So you need to make paths relative.