From 9203202cf78a6e720b982e1cea3b0b5c3ea3f8e3 Mon Sep 17 00:00:00 2001 From: Hans Petter Simonsen Date: Tue, 15 Aug 2023 15:14:52 +0200 Subject: [PATCH] Rydde litt --- .github/workflows/deploy-intern.yml | 8 +------- src/index.tsx | 12 +----------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy-intern.yml b/.github/workflows/deploy-intern.yml index 97068e76b..93eb6d4ac 100644 --- a/.github/workflows/deploy-intern.yml +++ b/.github/workflows/deploy-intern.yml @@ -44,10 +44,4 @@ jobs: cdn-team-name: dab source: ./build/ destination: /${{ inputs.bucket }}/ - cache-invalidate: true - - name: Sjekk rate limit hvis feil - if: failure() - run: | - curl -H "Authorization: Bearer $NODE_AUTH_TOKEN" 'https://api.github.com/rate_limit' - env: - NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} + cache-invalidation: true diff --git a/src/index.tsx b/src/index.tsx index 3dd2fc6e9..fede23f9a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,9 +4,8 @@ import React from 'react'; import * as ReactDOM from 'react-dom'; import { initAmplitude } from './amplitude/amplitude'; -import { ER_INTERN_FLATE, USE_HASH_ROUTER, USE_MOCK } from './constant'; +import { ER_INTERN_FLATE, USE_MOCK } from './constant'; import DemoBanner from './mocks/demo/DemoBanner'; -import { erEksternBruker } from './mocks/demo/localStorage'; setDefaultOptions({ locale: nn }); @@ -31,16 +30,7 @@ const renderApp = () => { } }; -const isTest = import.meta.env.MODE === 'test'; if (USE_MOCK) { - const pathnamePrefix = `${import.meta.env.BASE_URL}${USE_HASH_ROUTER ? '#/' : ''}`; - - // if (erEksternBruker() && !isTest) { - // window.history.replaceState({}, '', pathnamePrefix); - // } else if (!erEksternBruker() && !isTest) { - // window.history.replaceState({}, '', pathnamePrefix); - // } - import('./mocks') .then(({ default: startWorker }) => startWorker()) .then(() => {