Merge pull request #1199 from dannyrb/ci/complete-promoted-deploy

ci: Redirect site traffic to index.html if file is not resolved
This commit is contained in:
Danny Brown 2019-11-18 11:00:11 -05:00 committed by GitHub
commit caadf089df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -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
###

View File

@ -0,0 +1,5 @@
# Specific to our non-deploy-preview deploys
# Confgure redirects using netlify.toml
# PWA Redirect
/* /index.html 200