Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions appengine/building-an-app/build/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gae_build_app_yaml_node]
# [START app_yaml]
# [START gae_app_yaml]
runtime: nodejs20
# [END gae_app_yaml]
# [END app_yaml]
# [END gae_build_app_yaml_node]
Comment on lines +14 to +20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The region tag gae_build_app_yaml_node encapsulates the entire app.yaml content. Consider if this is the intended scope, or if it should only wrap the runtime setting to be more specific.

# [START gae_build_app_yaml_node]
runtime: nodejs20
# [END gae_build_app_yaml_node]

5 changes: 2 additions & 3 deletions appengine/building-an-app/build/test/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ const supertest = require('supertest');
const path = require('path');
const app = require(path.join(__dirname, '../', 'server.js'));


describe('gae_app', () => {
it('should be listening', async () => {
await supertest(app).get('/').expect(200);
});
})
});

describe('gae_build_web_server_app', () => {
it('should be listening', async () => {
await supertest(app).get('/').expect(200);
});
})
});
2 changes: 2 additions & 0 deletions appengine/building-an-app/update/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gae_update_app_yaml_node]
# [START gae_app_yaml]
# [START app_yaml]
runtime: nodejs20
# [END app_yaml]
# [END gae_app_yaml]
# [END gae_update_app_yaml_node]
Comment on lines +14 to +20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the build/app.yaml, the gae_update_app_yaml_node tag encapsulates the entire file. Ensure this scope is intentional, or narrow it down to the runtime setting for better granularity.

# [START gae_update_app_yaml_node]
runtime: nodejs20
# [END gae_update_app_yaml_node]

Loading