Deploy an Angular CLI Project to now.sh

Bram Borggreve
InstructorBram Borggreve
Share this video with your friends

Social Share Links

Send Tweet
Published 6 years ago
Updated 6 years ago

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!

Christian
Christian
~ 6 years ago

Why do I get this error Your project is missing a now.json file with a version property. More: https://zeit.co/docs/version-config?

Markdown supported.
Become a member to join the discussionEnroll Today