From ae3faccdcf79d72b1b6409db703dd58a6edfa582 Mon Sep 17 00:00:00 2001 From: Guusvanmeerveld Date: Thu, 31 Mar 2022 23:54:19 +0200 Subject: [PATCH] Fix error from previous commit + small optimization --- .github/workflows/deploy.yml | 7 +++---- src/utils/hooks.ts | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8adea1e..bb45f28 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,9 @@ on: - next.config.js - .github/workflows/** +env: + NEXT_TELEMETRY_DISABLED: 1 + jobs: test: runs-on: ubuntu-latest @@ -31,14 +34,11 @@ jobs: - name: Lint run: yarn run lint - env: - NEXT_TELEMETRY_DISABLED: 1 - name: Build website run: yarn run export env: NODE_ENV: production - NEXT_TELEMETRY_DISABLED: 1 - uses: actions/upload-artifact@v3 with: @@ -65,7 +65,6 @@ jobs: run: yarn run export env: NODE_ENV: production - NEXT_TELEMETRY_DISABLED: 1 - name: Deploy to pages uses: peaceiris/actions-gh-pages@v3 diff --git a/src/utils/hooks.ts b/src/utils/hooks.ts index d8e64f6..091dc14 100644 --- a/src/utils/hooks.ts +++ b/src/utils/hooks.ts @@ -4,13 +4,13 @@ import { Dispatch, SetStateAction } from "react"; import { red } from "@mui/material/colors"; -import Settings from "@interfaces/settings"; +import Settings, { StorageType } from "@interfaces/settings"; const defaultSettings: Settings = { primaryColor: red[800], accentColor: red[800], invidiousServer: process.env.NEXT_PUBLIC_DEFAULT_SERVER as string, - storageType: "local" + storageType: StorageType.Local }; export const useSettings = (): [