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
Copy file name to clipboardExpand all lines: README.md
+41-2Lines changed: 41 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Any framework that can generate a build output in accordance with the App Hostin
18
18
The output bundle primarily consists of a `bundle.yaml` file that sits inside of the `.apphosting` directory. This bundle.yaml contains all the ways that frameworks can configure App Hosting when users deploy their applications.
19
19
20
20
> [!NOTE]
21
-
> App Hosting technically supports all all node applications, but no custom framework features will be enabled without the output bundle.
21
+
> App Hosting technically supports all node applications, but no custom framework features will be enabled without the output bundle.
22
22
23
23
## Output bundle Schema
24
24
@@ -37,6 +37,7 @@ interface OutputBundle {
37
37
version:"v1"
38
38
runConfig:RunConfig;
39
39
metadata:Metadata;
40
+
outputFiles?:OutputFiles;
40
41
}
41
42
```
42
43
@@ -108,12 +109,44 @@ interface Metadata {
108
109
|`framework`|`string`| Name of the framework that is being supported | y |
109
110
|`frameworkVersion`|`string`|Version of the framework that is being supported | n |
110
111
112
+
### OutputFiles
113
+
114
+
OutputFiles is an optional field to configure outputFiles and optimize server files + static assets.
115
+
116
+
```typescript
117
+
interfaceOutputFiles {
118
+
serverApp:ServerApp
119
+
}
120
+
121
+
```
122
+
123
+
| Field | Type | Description | Required? |
124
+
| ---------- | ------- | - | - |
125
+
|`serverApp`|`ServerApp`| ServerApp holds configurations related to the serving files at runtime from Cloud Run | y |
126
+
127
+
### ServerApp
128
+
129
+
OutputFiles is an optional field to configure outputFiles and optimize server files + static assets.
130
+
131
+
```typescript
132
+
interfaceServerApp {
133
+
include:string[]
134
+
}
135
+
136
+
```
137
+
138
+
| Field | Type | Description | Required? |
139
+
| ---------- | ------- | - | - |
140
+
|`include`|`string[]`| include holds a list of directories + files relative to the app root dir that frameworks need to deploy to the App Hosting server, generally this will be the output/dist directory (e.g. .output or dist). In the case that the framework wants to include all files they can use [“.”]| y |
141
+
142
+
## Sample
143
+
111
144
Here is a sample `.apphosting/bundle.yaml` file putting all this together:
0 commit comments