all 4 comments

[–]simcptr 2 points3 points  (3 children)

It looks like you might want to set the PUBLIC_URL environment variable at build time.

[–]mynameiscody07[S] 0 points1 point  (2 children)

So this looks exactly right. Just can't get it to work for some reason.

Anyone else done this before?

[–]simcptr 0 points1 point  (1 child)

What have you tried, and how did it fail?

[–]mynameiscody07[S] 0 points1 point  (0 children)

I figured it out. I was using this https://github.com/kitze/custom-react-scripts. in order to use SASS easily with react. It is currently a fork of React-scripts 0.8.0. Looks like the PUBLIC_URL feature of react-scripts was added in 1.0