Skip to content

Commit

Permalink
👷 Fjerner byggesteg for labs da miljøet ikke lenger eksisterer
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Rognes <[email protected]>
  • Loading branch information
steoiv and thomasrognes committed Oct 19, 2023
1 parent 4be9f09 commit 90eca18
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 85 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/labs.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions .nais/labs.env

This file was deleted.

7 changes: 0 additions & 7 deletions .nais/labs.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions lib/utils/__test__/environments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ describe('Environments', () => {
process.env.NEXT_PUBLIC_ENVIRONMENT = 'localhost';
expect(isMock()).toBe(true);
});
it('isMock should be true for labs', () => {
process.env.NEXT_PUBLIC_ENVIRONMENT = 'labs';
expect(isMock()).toBe(true);
});
it('isMock should be false for dev', () => {
process.env.NEXT_PUBLIC_ENVIRONMENT = 'dev';
expect(isMock()).toBe(false);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/environments.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const MOCK_ENVIRONMENTS = ['localhost', 'labs'];
const MOCK_ENVIRONMENTS = ['localhost'];

export const isMock = () => MOCK_ENVIRONMENTS.includes(process.env.NEXT_PUBLIC_ENVIRONMENT ?? '');

0 comments on commit 90eca18

Please sign in to comment.