From 2b9765304fccbc676eb53a3aea15f5acc6e705a7 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Mon, 18 Nov 2019 10:57:21 -0500 Subject: [PATCH] ci: Redirect site traffic to index.html if file is not resolved --- .circleci/config.yml | 6 ++++++ .netlify/deploy-workflow/_redirects | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 .netlify/deploy-workflow/_redirects diff --git a/.circleci/config.yml b/.circleci/config.yml index 171d408c3..02e6f83a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -186,6 +186,8 @@ jobs: - attach_workspace: at: ~/repo - run: cd .netlify && npm install + - run: + cp .netlify/deploy-worflow/_redirects platform/viewer/dist/_redirects - run: cd .netlify && npm run deploy DEPLOY_TO_STAGING: @@ -199,6 +201,8 @@ jobs: - attach_workspace: at: ~/repo - run: cd .netlify && npm install + - run: + cp .netlify/deploy-worflow/_redirects platform/viewer/dist/_redirects - run: cd .netlify && npm run deploy DEPLOY_TO_PRODUCTION: @@ -212,6 +216,8 @@ jobs: - attach_workspace: at: ~/repo - run: cd .netlify && npm install + - run: + cp .netlify/deploy-worflow/_redirects platform/viewer/dist/_redirects - run: cd .netlify && npm run deploy ### diff --git a/.netlify/deploy-workflow/_redirects b/.netlify/deploy-workflow/_redirects new file mode 100644 index 000000000..801b28f5c --- /dev/null +++ b/.netlify/deploy-workflow/_redirects @@ -0,0 +1,5 @@ +# Specific to our non-deploy-preview deploys +# Confgure redirects using netlify.toml + +# PWA Redirect +/* /index.html 200