We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f3f60 commit 624679aCopy full SHA for 624679a
index.js
@@ -15,6 +15,7 @@ export default function entrypoint(options = {}) {
15
useCloudTracing = false,
16
dependencies = {},
17
nodejsRuntime = 18,
18
+ defaultYamlFile = "app.yaml"
19
} = options;
20
21
return {
@@ -140,9 +141,9 @@ export default function entrypoint(options = {}) {
140
141
142
// Load existing app.yaml if it exists
143
let yaml = {};
- if (existsSync("app.yaml")) {
144
- builder.log.minor("Existing app.yaml found");
145
- yaml = YAML.parse(readFileSync("app.yaml").toString());
+ if (existsSync(defaultYamlFile)) {
+ builder.log.minor(`Existing ${defaultYamlFile} found`);
146
+ yaml = YAML.parse(readFileSync(defaultYamlFile).toString());
147
}
148
149
const serverRoutes = [
0 commit comments