Files
ohif-viewer/netlify.toml
T

75 lines
2.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
#
# We use Netlify for deploy previews and deploy previews only.
# 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
2019-08-13 15:36:46 -04:00
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
2019-08-13 15:36:46 -04:00
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = ""
publish = "project/build-output/"
2019-04-16 16:39:36 -04:00
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]
2019-08-13 15:36:46 -04:00
NODE_END = "production"
NODE_VERSION = "10.16.0"
YARN_VERSION = "1.17.3"
RUBY_VERSION = "2.6.2"
2019-04-16 16:39:36 -04:00
YARN_FLAGS = "--no-ignore-optional --pure-lockfile"
2019-08-13 15:36:46 -04:00
# Production context: all deploys from the Production branch set in your site's
# deploy contexts will inherit these settings.
# [context.production]
# publish = "project/output/"
# command = "make publish"
# environment = { ACCESS_TOKEN = "super secret", NODE_VERSION = "8.0.1" }
2019-08-13 15:36:46 -04:00
# Deploy Preview context: all deploys generated from a pull/merge request will
# inherit these settings.
[context.deploy-preview]
base = ""
publish = ".netlify/www/"
command = "yarn config set workspaces-experimental true && chmod +x .netlify/build-deploy-preview.sh && .netlify/build-deploy-preview.sh"
# Redirects and headers are GLOBAL for all builds – they do not get scoped to
# contexts no matter where you define them in the file.
# For context-specific rules, use _headers or _redirects files, which are
# PER-DEPLOY.
# The following redirect is intended for use with most SPAs that handle
# routing internally.
# By default, redirects won't be applied if there's a file with the same
# path as the one defined in the `from` property. Setting `force` to `true`
# will make the redirect rule take precedence over any existing files.
2019-04-16 16:39:36 -04:00
[[redirects]]
2019-04-29 09:13:31 -04:00
from = "/*"
2019-04-29 15:06:17 -04:00
to = "/index.html"
2019-04-29 08:33:48 -04:00
status = 200
2019-08-13 15:36:46 -04:00
[[redirects]]
from = "/pwa/*"
to = "/pwa/index.html"
status = 200
[[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'''