From 55e337b8ca348ff29cc36690e73c0f141852cd9d Mon Sep 17 00:00:00 2001 From: Chris Jordan Date: Mon, 18 Mar 2024 18:41:09 -0400 Subject: [PATCH] updated app.yaml --- appengine/frontend/app.yaml | 41 +++++++++---------------- src/neuroglancer/authentication/base.ts | 1 - 2 files changed, 14 insertions(+), 28 deletions(-) diff --git a/appengine/frontend/app.yaml b/appengine/frontend/app.yaml index e507eb41d..9913b45b8 100644 --- a/appengine/frontend/app.yaml +++ b/appengine/frontend/app.yaml @@ -1,32 +1,19 @@ -runtime: python27 -api_version: 1 -threadsafe: true - -# The skip_files element specifies which files -# in the application directory are not to be -# uploaded to App Engine. -skip_files: -- ^(.*/)?#.*#$ -- ^(.*/)?.*~$ -- ^(.*/)?.*\.py[co]$ -- ^(.*/)?.*/RCS/.*$ -- ^(.*/)?\..*$ -- ^node_modules$ +runtime: python312 service: default handlers: -# Handle the main page by serving the index page. -# Note the $ to specify the end of the path, since app.yaml does prefix matching. -- url: /$ - static_files: static/index.html - upload: static/index.html - login: optional - secure: always - redirect_http_response_code: 301 + # Handle the main page by serving the index page. + # Note the $ to specify the end of the path, since app.yaml does prefix matching. + - url: /$ + static_files: static/index.html + upload: static/index.html + login: optional + secure: always + redirect_http_response_code: 301 -- url: / - static_dir: static - login: optional - secure: always - redirect_http_response_code: 301 + - url: / + static_dir: static + login: optional + secure: always + redirect_http_response_code: 301 \ No newline at end of file diff --git a/src/neuroglancer/authentication/base.ts b/src/neuroglancer/authentication/base.ts index 2d419d036..62471a3aa 100644 --- a/src/neuroglancer/authentication/base.ts +++ b/src/neuroglancer/authentication/base.ts @@ -62,7 +62,6 @@ async function authFetchOk( input: RequestInfo, init?: RequestInit, handleError = true): Promise { try { const res = await fetch(input, init); - alert(`authFetchOk status ${res.status}`); console.log("authFetchOk status", res.status); if (res.status === 400 || res.status === 401) {