-
Notifications
You must be signed in to change notification settings - Fork 104
/
app.yaml
33 lines (29 loc) · 1.17 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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)$