File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export default function entrypoint(options = {}) {
15
15
useCloudTracing = false ,
16
16
dependencies = { } ,
17
17
nodejsRuntime = 18 ,
18
+ defaultYamlFile = 'app.yaml'
18
19
} = options ;
19
20
20
21
return {
@@ -134,15 +135,15 @@ export default function entrypoint(options = {}) {
134
135
url : `/${ file } ` ,
135
136
// eslint-disable-next-line camelcase
136
137
static_files : join ( "storage" , file ) . replaceAll ( "\\" , "/" ) ,
137
- upload : join ( "storage" , file ) . replaceAll ( "\\" , "/" ) ,
138
- secure : "always" ,
139
- } ) ) ;
138
+ upload : join ( "storage" , file ) . replaceAll ( "\\" , "/" ) ,
139
+ secure : "always" ,
140
+ } ) ) ;
140
141
141
142
// Load existing app.yaml if it exists
142
143
let yaml = { } ;
143
- if ( existsSync ( "app.yaml" ) ) {
144
- builder . log . minor ( " Existing app.yaml found" ) ;
145
- yaml = YAML . parse ( readFileSync ( "app.yaml" ) . toString ( ) ) ;
144
+ if ( existsSync ( defaultYamlFile ) ) {
145
+ builder . log . minor ( ` Existing ${ defaultYamlFile } found` ) ;
146
+ yaml = YAML . parse ( readFileSync ( defaultYamlFile ) . toString ( ) ) ;
146
147
}
147
148
148
149
const serverRoutes = [
You can’t perform that action at this time.
0 commit comments