Files
ohif-viewer/platform/app/netlify.toml
T

47 lines
1.4 KiB
TOML
Raw Normal View History

2019-08-13 15:36:46 -04:00
# Netlify Config
#
# TOML Reference:
2019-04-29 08:33:48 -04:00
# https://www.netlify.com/docs/netlify-toml-reference/
2019-08-13 15:36:46 -04:00
#
2019-09-06 15:09:20 -04:00
# We use Netlify for deploy previews and for publishing docs (gh-pages branch).
2019-08-13 15:36:46 -04:00
# https://viewer.ohif.org is created using a different process that is
# managed by CircleCI and deployed to our Google Hosting
#
2019-04-29 08:33:48 -04:00
[build]
base = ""
build = "yarn run build:viewer:ci"
publish = "dist"
2019-08-13 15:36:46 -04:00
# NODE_VERSION in root `.nvmrc` takes priority
# YARN_FLAGS: https://www.netlify.com/docs/build-gotchas/#yarn
2019-04-16 16:39:36 -04:00
[build.environment]
# If 'production', `yarn install` does not install devDependencies
NODE_ENV = "development"
NODE_VERSION = "16.14.0"
YARN_VERSION = "1.22.5"
2019-08-13 15:36:46 -04:00
RUBY_VERSION = "2.6.2"
2019-04-16 16:39:36 -04:00
YARN_FLAGS = "--no-ignore-optional --pure-lockfile"
NETLIFY_USE_YARN = "true"
2019-08-13 15:36:46 -04:00
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
# Multi-key header rules are expressed with multi-line strings.
cache-control = '''
max-age=0,
no-cache,
no-store,
must-revalidate'''
2021-06-23 20:41:27 +02:00
# COMMENT: For sharedArrayBuffer, see https://developer.chrome.com/blog/enabling-shared-array-buffer/
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"
# set CORP to cross-origin for anyone who wants to use the viewer in an iframe
Cross-Origin-Resource-Policy = "cross-origin"