Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features
Autoplay

    Deploy an Angular CLI Project to now.sh

    Bram BorggreveBram Borggreve
    angularAngular
    ^6.0.0
    zeit-nownow
    angular-cliAngular CLI

    In this lesson we will add support for deploying our application to now.sh.

    We will create a now object in package.json where we configure the name, the alias and the list of files we want to deploy.

    We create an npm run-script called now-build and set the value to true to skip building the project on now.sh. The second run-script called now invokes now deploy && now alias.

    After this we sun npm run build && npm run now to build and deploy our app!

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss