From 6b290f0bddda75d22941edb39eda4b3900cc53ca Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Mon, 10 Jun 2019 17:31:37 -0700 Subject: [PATCH] fix: Fixes GAE headless chrome region tags. See #834 (#1356) * fix: Fixes GAE headless chrome region tags. See #834 * Update app.js --- appengine/headless-chrome/app.js | 8 ++++---- appengine/headless-chrome/app.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/appengine/headless-chrome/app.js b/appengine/headless-chrome/app.js index ebfc430ead..639a2ed6cb 100644 --- a/appengine/headless-chrome/app.js +++ b/appengine/headless-chrome/app.js @@ -15,7 +15,7 @@ limitations under the License. */ 'use strict'; -// [START full_sample] +// [START gae_std_headless_chrome_full_sample] const express = require('express'); const puppeteer = require('puppeteer'); const app = express(); @@ -32,11 +32,11 @@ app.use(async (req, res) => { } if (!browser) { - // [START browser] + // [START gae_std_headless_chrome_full_sample_browser] browser = await puppeteer.launch({ args: ['--no-sandbox'], }); - // [END browser] + // [END gae_std_headless_chrome_full_sample_browser] } const page = await browser.newPage(); @@ -54,6 +54,6 @@ const server = app.listen(process.env.PORT || 8080, err => { const {port} = server.address(); console.info(`App listening on port ${port}`); }); -// [END full_sample] +// [END gae_std_headless_chrome_full_sample] module.exports = app; diff --git a/appengine/headless-chrome/app.yaml b/appengine/headless-chrome/app.yaml index 2d06f3ab2e..7e8eecf6da 100644 --- a/appengine/headless-chrome/app.yaml +++ b/appengine/headless-chrome/app.yaml @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License -# [START app_yaml] +# [START gae_std_headless_chrome_app_yaml] runtime: nodejs10 instance_class: F4_1G -# [END app_yaml] +# [END gae_std_headless_chrome_app_yaml]