From d8fc4472edc114ed7357de901494ea3fc5cd4d36 Mon Sep 17 00:00:00 2001 From: Alec LaLonde Date: Thu, 23 Feb 2023 11:27:31 -0700 Subject: [PATCH] Fixed background image URL form field name --- .github/workflows/PR-CI.yml | 20 ++++++++++---------- packages/web/components/EditProfileModal.tsx | 4 ++-- packages/web/config.ts | 2 ++ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/PR-CI.yml b/.github/workflows/PR-CI.yml index 16658116..3ed96e9f 100644 --- a/.github/workflows/PR-CI.yml +++ b/.github/workflows/PR-CI.yml @@ -48,16 +48,16 @@ jobs: # Disabling rather than fighting with ts-jest # at this particular moment. dys:2022/11/01 - - name: Testing + # - name: Testing # run: yarn test --ci --coverage # env: # CI: true - - uses: actions/github-script@v6 - with: - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '🚧🚧 Tests Disabled 🚧🚧' - }) + # - uses: actions/github-script@v6 + # with: + # script: | + # github.rest.issues.createComment({ + # issue_number: context.issue.number, + # owner: context.repo.owner, + # repo: context.repo.repo, + # body: '🚧🚧 Tests Disabled 🚧🚧' + # }) diff --git a/packages/web/components/EditProfileModal.tsx b/packages/web/components/EditProfileModal.tsx index 2ef0388b..644a2419 100644 --- a/packages/web/components/EditProfileModal.tsx +++ b/packages/web/components/EditProfileModal.tsx @@ -64,7 +64,7 @@ import { Label } from './Player/Profile/Label'; type EditProfileFields = { profileImageURL?: Maybe; - profileBackgroundURL?: Maybe; + backgroundImageURL?: Maybe; description?: Maybe; username?: Maybe; name?: Maybe; @@ -280,7 +280,7 @@ export const EditProfileModal: React.FC = ({ { setPickedFiles({ ...pickedFiles, diff --git a/packages/web/config.ts b/packages/web/config.ts index fe2c7b9f..de5b3f39 100644 --- a/packages/web/config.ts +++ b/packages/web/config.ts @@ -1,6 +1,8 @@ export const CONFIG = { environment: process.env.NODE_ENV || 'development', graphqlURL: (() => { + // According to next.js, destructuring process.env doesn't work, + // so capture the variables individually const url = process.env.NEXT_PUBLIC_GRAPHQL_URL; const host = process.env.NEXT_PUBLIC_GRAPHQL_HOST; if (url) return url;