Fix error from previous commit + small optimization

main
Guus van Meerveld 2 years ago
parent c4b9ba011d
commit ae3faccdcf
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -13,6 +13,9 @@ on:
- next.config.js - next.config.js
- .github/workflows/** - .github/workflows/**
env:
NEXT_TELEMETRY_DISABLED: 1
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -31,14 +34,11 @@ jobs:
- name: Lint - name: Lint
run: yarn run lint run: yarn run lint
env:
NEXT_TELEMETRY_DISABLED: 1
- name: Build website - name: Build website
run: yarn run export run: yarn run export
env: env:
NODE_ENV: production NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
@ -65,7 +65,6 @@ jobs:
run: yarn run export run: yarn run export
env: env:
NODE_ENV: production NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1
- name: Deploy to pages - name: Deploy to pages
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3

@ -4,13 +4,13 @@ import { Dispatch, SetStateAction } from "react";
import { red } from "@mui/material/colors"; import { red } from "@mui/material/colors";
import Settings from "@interfaces/settings"; import Settings, { StorageType } from "@interfaces/settings";
const defaultSettings: Settings = { const defaultSettings: Settings = {
primaryColor: red[800], primaryColor: red[800],
accentColor: red[800], accentColor: red[800],
invidiousServer: process.env.NEXT_PUBLIC_DEFAULT_SERVER as string, invidiousServer: process.env.NEXT_PUBLIC_DEFAULT_SERVER as string,
storageType: "local" storageType: StorageType.Local
}; };
export const useSettings = (): [ export const useSettings = (): [

Loading…
Cancel
Save