25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setting the CDN URL<br />

The cdn helper method will need to know the URL of the CDN. Let's set an<br />

CDN_URL environment variable that will be assigned the zone URL for <strong>Vue</strong>bnb,<br />

minus the protocol prefix.<br />

While we're at it, let's add another variable, CDN_BYPASS, that can be used to bypass<br />

the CDN in our local development environment where we won't need it.<br />

.env: ... CDN_URL=vuebnb-9c0f.kxcdn.com CDN_BYPASS=0<br />

Let's now register these new variables in the app configuration file.<br />

config/app.php:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!