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 = (): [