Conversation
This is just a way to generate CDN urls with our current |
You can setup CloudFront to either pull from an AWS bucket or to get it from a server, which is what I chose (formspree.io). If you go to d1ma8knj6twvg6.cloudfront.net, you'll see that it's mirroring the Formspree site directly. As a result, it will replace the static URLs with those pulled from CloudFront. However, after I submitted this I pushed to my Heroku and learned that some of the files in the portal seem to be pulling in files that it cannot access, even though it works locally, so this cannot be merged yet. |
The funny part is that it shouldn't be passing the Travis CI tests if it can't access the portal since the tests check the status code returned |
That's much better than I thought. |
Looks like it's a font issue that's causing all these problems, so I'll try to fix the CloudFront distribution and see if that fixes things. |
The issue of it not loading on Heroku was related to me forgetting to upgrade my Heroku DB, not CloudFront. I fixed the issue by using the CDN provided by Ionicons for importing the icons. This should solve all the issues and is better anyways since it simplifies us from loading the icons ourselves from our own folder. If we wanted to, we could also just use Font Awesome for the icons and not use Ionicons at all, but that's a decision for later. |
Are we using two different sets of icons? |
Yes we currently have Ionicon and Font Awesome. I would say we should probably use Font Awesome since given its popularity, it would be more likely to be future proofed in the event of any browser changes. |
@fiatjaf Is this ok to merge? |
Sorry, I think I was waiting for you to solve some old issue you mentioned, but you had already solved it a long time ago. How will this affect the experience of people hosting Formspree without a CDN or, more important, running Formspree locally for development? |
If the config var for |
So let's merge it! |
Changes proposed in this pull request:
Have you made sure to add:
None necessary. CloudFront works right out of the box
Screenshots and GIFs
Deploy notes
Must add the
CDN_URL
config variable to Heroku and set it to our CDN URLAny Additional Information