blob: 2a3ec5bede5cd4b8810fa62bf3b0c9eec21eacd4 [file] [log] [blame]
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
runtime: custom
env: flex
service: default
readiness_check:
path: "/readiness_check"
check_interval_sec: 20
timeout_sec: 20
failure_threshold: 10
success_threshold: 2
app_start_timeout_sec: 600
resources:
memory_gb: 4.0
handlers:
# The Dart server handles all requests. However, this is used to ensure the
# assets the dart server needs are uploaded to AppEngine.
- url: /v2/(.*\.(html|css|js|ico|svg|png|jpg|map))$
application_readable: true # So the dart server can read the files
# If the Dart custom runtime changes and starts using this handler,
# we want to know. This will have the app only serve HTML and we
# will know we can remove the Dart handling code. Just swap
# index.html to \1
static_files: build/web/index.html
# app_flutter's build files needed to be copied over to this project. This
# is because the Google Cloud utility cannot go outside the scope of app_dart.
# Navigating to ../app_flutter/build/web will silently error.
upload: build/web/.*\.(html|css|js|ico|svg|png|jpg|map)$