You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

2
2
3
-
# Essential Angular Serverless Plugin
3
+
# Angular Universal Plugin
4
4
5
-
This build plugin is a utility for supporting Angular Universal on Netlify. This plugin should be installed by running a Netlify-specific Angular schematic.
5
+
This build plugin is a utility for supporting Angular Universal on Netlify.
6
6
7
7
## Table of Contents
8
8
9
9
-[Installation and Configuration](#installation-and-configuration)
10
+
-[CLI Usage](#cli-usage)
11
+
-[Caveats](#caveats)
10
12
11
13
## Installation and Configuration
12
14
13
-
### Angular Schematic
15
+
The schematic commands will create a `netlify.toml` in the root of your project, if it doesn't already exist. Your file should include the correct build command, publish directory, and plugins section below. Note: the build command requires you to include your custom project name (as indicated in your angular.json) where designated below:
14
16
15
-
```bash
16
-
ng add netlify-schematics
17
-
```
17
+
```toml
18
+
[build]
19
+
command = "ng build --configuration production && ng run {projectName}:serverless:production"
20
+
publish = "dist/netlify-serverless/browser"
18
21
19
-
```bash
20
-
ng generate netlify-schematics:netlify-serverless`
22
+
[[plugins]]
23
+
package = "@netlify/plugin-angular-serverless"
21
24
```
22
25
23
-
The schematic commands will create a `netlify.toml`in the root of your project, if it doesn't already exist. Your file should include the correct build command, publish directory, and plugins section below. Note: the build command requires you to include your custom project name (as indicated in your angular.json) where designated below:
26
+
## Installation and Configuration
27
+
28
+
### Manual Installation
29
+
30
+
Create a `netlify.toml` in the root of your project. Your file should include the plugins section below:
24
31
25
32
```toml
26
33
[build]
@@ -30,3 +37,37 @@ The schematic commands will create a `netlify.toml` in the root of your project,
30
37
[[plugins]]
31
38
package = "@netlify/plugin-angular-serverless"
32
39
```
40
+
41
+
If you'd like to install this plugin at a fixed version, install it via your package manager:
0 commit comments