Skip to content

Commit

Permalink
chore: disable service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi committed Jul 14, 2020
1 parent 29570b4 commit 9109376
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,13 @@ publish_pwa:
script:
- VERSION="$(grep "version" package.json | grep -Eo '[0-9][^"]*')"
- docker info --format '{{json .Name}}' || (export DOCKER_HOST=tcp://localhost:2375/ DOCKER_DRIVER=overlay2 && docker info --format '{{json .Name}}') || (export DOCKER_HOST=tcp://docker:2375/ DOCKER_DRIVER=overlay2 && docker info --format '{{json .Name}}')
# build branches with development configuration
# - test "${CI_COMMIT_REF_SLUG}" = "demo" && ENVIRONMENT=production || ENVIRONMENT=local
- ENVIRONMENT=production
- docker build -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}-${CI_BUILD_REF}
--build-arg displayVersion="$VERSION ($CI_COMMIT_REF_NAME @ $CI_COMMIT_SHA)"
--build-arg configuration=$ENVIRONMENT
--build-arg serviceWorker=true
--build-arg serviceWorker=false
--label environment="$ENVIRONMENT"
--label revision="${CI_BUILD_REF}"
--label project="${CI_PROJECT_URL}"
Expand Down
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"maximumError": "10kb"
}
],
"serviceWorker": true,
"serviceWorker": false,
"ngswConfigPath": "ngsw-config.json"
},
"local": {
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ENVIRONMENT_DEFAULTS, Environment } from './environment.model';
export const environment: Environment = {
...ENVIRONMENT_DEFAULTS,
production: true,
serviceWorker: true,
serviceWorker: false,

/* INTERSHOP COMMERCE MANAGEMENT REST API CONFIGURATION */
icmBaseURL: 'https://intershoppwa.azurewebsites.net',
Expand Down

0 comments on commit 9109376

Please sign in to comment.