* init * use workbox-window * Try to accomodate SW hosted at non root url * v5 updated namespaces * Test w/ no prompt * add icons to manifest * remove scope for now * add icon tile information to entrypoint * See if we can skirt by without a duplicate install * shift client claims to skip waiting message * Remove prepended slash * comment out cache handler for now * Simplify service-worker to skip waiting and install when a new worker is detected * Use generated icons * Update rollbar config
58 lines
1.9 KiB
TOML
58 lines
1.9 KiB
TOML
# Netlify Config
|
|
#
|
|
# TOML Reference:
|
|
# https://www.netlify.com/docs/netlify-toml-reference/
|
|
#
|
|
# We use Netlify for deploy previews and for publishing docs (gh-pages branch).
|
|
# https://viewer.ohif.org is created using a different process that is
|
|
# managed by CircleCI and deployed to our Google Hosting
|
|
#
|
|
|
|
# Settings in the [build] context are global and are applied to all contexts
|
|
# unless otherwise overridden by more specific contexts.
|
|
[build]
|
|
# Directory to change to before starting a build.
|
|
# This is where we will look for package.json/.nvmrc/etc.
|
|
base = ""
|
|
publish = "project/build-output/"
|
|
|
|
|
|
# NODE_VERSION in root `.nvmrc` takes priority
|
|
# YARN_FLAGS: https://www.netlify.com/docs/build-gotchas/#yarn
|
|
[build.environment]
|
|
NODE_END = "production"
|
|
NODE_VERSION = "10.16.0"
|
|
YARN_VERSION = "1.17.3"
|
|
RUBY_VERSION = "2.6.2"
|
|
YARN_FLAGS = "--no-ignore-optional --pure-lockfile"
|
|
|
|
# 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" }
|
|
|
|
# Deploy Preview context: all deploys generated from a pull/merge request will
|
|
# inherit these settings.
|
|
[context.deploy-preview]
|
|
base = ""
|
|
publish = ".netlify/www/"
|
|
command = "chmod +x .netlify/build-deploy-preview.sh && .netlify/build-deploy-preview.sh"
|
|
# command = "yarn config set workspaces-experimental true && chmod +x .netlify/build-deploy-preview.sh && .netlify/build-deploy-preview.sh"
|
|
|
|
[[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'''
|