Skip to content

Commit

Permalink
docs: add description of the preview flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Feb 12, 2020
1 parent f7d5655 commit a8639fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/deploy/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ If you've specified that you want a server-side rendering enabled deployment in
2. Create `package.json` for the firebase function with the required dependencies.
3. Deploy the static assets to firebase hosting and your universal server as a Firebase function.

If you want to preview your Angular Universal project before we deploy it as a Firebase Function you can run:

```
ng deploy --preview
```

We'll create the function and a `package.json` in your project output directory. This way, you can later run `firebase serve` in your project root so you can test everything before deploying.

## Step 3: customization

To customize the deployment flow, you can use the configuration files you're already familiar with from `firebase-tools`. You can find more in the [firebase documentation](https://firebase.google.com/docs/hosting/full-config).
2 changes: 1 addition & 1 deletion src/core/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"ng-add-setup-project": {
"description": "Setup ng deploy",
"factory": "./schematics/public_api#ngAddSetupProject"
"factory": "./schematics/public_api#ngAddSetupProject"
}
}
}

0 comments on commit a8639fb

Please sign in to comment.