forked from ohcnetwork/care_fe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
35 lines (30 loc) · 915 Bytes
/
netlify.toml
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
34
35
[build]
publish = "build/"
command = "CI='' npm run build"
## Yarn 3 cache does not work out of the box as of Jan 2022. Context:
## https://github.com/netlify/build/issues/1535#issuecomment-1021947989
## [build.environment]
## NETLIFY_USE_YARN = "true"
## YARN_VERSION = "3.2.1"
## YARN_FLAGS = "--check-cache"
## YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
## YARN_ENABLE_GLOBAL_CACHE = "true"
## YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--legacy-peer-deps"
NODE_OPTIONS = "--max_old_space_size=4096"
## YARN_VERSION = "3.2.1"
## YARN_FLAGS = "--mode=update-lockfile"
## YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
## [[plugins]]
## package = "/.netlify/netlify-plugin-yarn"
[[redirects]]
from = "/api/*"
to = "https://careapi.coronasafe.in/api/:splat"
status = 200
force = true
[[redirects]]
from = "/*"
to = "/index.html"
status = 200