From 0fa6a556d06643a3658fdc36c98de3b1a1161486 Mon Sep 17 00:00:00 2001 From: zachery with an e <45150570+zweatshirt@users.noreply.github.com> Date: Sun, 17 May 2026 14:28:27 -0500 Subject: [PATCH] Remove all references to SITE_URL environment variable since it isn't strictly needed --- .github/workflows/ci.yml | 1 - .github/workflows/preview.yml | 1 - __tests__/util/globalSetup.ts | 1 - next.config.ts | 7 ++-- pages/_document.page.tsx | 2 +- .../Items/ProfileMenu/ProfileMenu.test.tsx | 9 ++--- .../TopBar/Items/ProfileMenu/ProfileMenu.tsx | 2 +- .../Google/GoogleAccordion.test.tsx | 8 +++-- .../Mailchimp/MailchimpAccordion.test.tsx | 4 ++- .../OrganizationAccordion.test.tsx | 4 ++- .../PrayerlettersAccordion.test.tsx | 8 +++-- .../Settings/integrations/useOauthUrl.ts | 2 +- .../Tool/MergeContacts/MergeContacts.test.tsx | 35 +++++++++++++++++++ .../MergeContacts/StickyConfirmButtons.tsx | 2 +- .../Tool/TntConnect/TntConnect.test.tsx | 8 +++++ src/components/Tool/TntConnect/TntConnect.tsx | 2 +- src/lib/apollo/link.ts | 2 +- 17 files changed, 71 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cbca661da..649f36c4d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,6 @@ env: # we don't want to let the PR be merged yet. If the "Staging API" label is added to the PR, we # run codegen against the staging API instead of the production API and block the PR from merging. API_URL: ${{ contains(github.event.pull_request.labels.*.name, 'Staging API') && 'https://api.stage.mpdx.org/graphql' || 'https://api.mpdx.org/graphql' }} - SITE_URL: http://stage.mpdx.org jobs: test: diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e34fc7546f..3c14a5bc65 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -32,4 +32,3 @@ jobs: AmplifyAppId: ${{ secrets.AMPLIFY_APP_ID }} AWS_REGION: 'us-east-1' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - EnvironmentVariables: 'SITE_URL=https://${{ github.head_ref }}.${{ secrets.AMPLIFY_APP_ID }}.amplifyapp.com' diff --git a/__tests__/util/globalSetup.ts b/__tests__/util/globalSetup.ts index 060f090f52..3a5a50e37a 100644 --- a/__tests__/util/globalSetup.ts +++ b/__tests__/util/globalSetup.ts @@ -1,7 +1,6 @@ const globalSetup = (): void => { process.env.TZ = 'UTC'; process.env.JWT_SECRET = 'test-environment-key'; - process.env.SITE_URL = 'https://mpdx.org'; process.env.APP_NAME = 'MPDX'; }; diff --git a/next.config.ts b/next.config.ts index deb2e7b307..0d4d0ab657 100644 --- a/next.config.ts +++ b/next.config.ts @@ -23,9 +23,6 @@ if (prod && !process.env.JWT_SECRET) { throw new Error('JWT_SECRET environment variable is not set'); } -const siteUrl = - process.env.PREVIEW_URL ?? process.env.SITE_URL ?? 'http://localhost:3000'; - const withBundleAnalyzer = bundleAnalyzer({ enabled: process.env.ANALYZE === 'true', }); @@ -38,14 +35,14 @@ const config: NextConfig = { REST_API_URL: process.env.REST_API_URL ?? 'https://api.stage.mpdx.org/api/v2/', OAUTH_URL: process.env.OAUTH_URL ?? 'https://auth.stage.mpdx.org', - SITE_URL: siteUrl, CLIENT_ID: process.env.CLIENT_ID ?? '4027334344069527005', CLIENT_SECRET: process.env.CLIENT_SECRET, AUTH_PROVIDER: process.env.AUTH_PROVIDER ?? 'OKTA', OKTA_CLIENT_ID: process.env.OKTA_CLIENT_ID ?? '0oa1n0gjoy3j5Ycdg0h8', OKTA_CLIENT_SECRET: process.env.OKTA_CLIENT_SECRET, OKTA_ISSUER: process.env.OKTA_ISSUER ?? 'https://signon.okta.com', - OKTA_SIGNOUT_REDIRECT_URL: process.env.OKTA_SIGNOUT_REDIRECT_URL ?? siteUrl, + OKTA_SIGNOUT_REDIRECT_URL: + process.env.OKTA_SIGNOUT_REDIRECT_URL ?? 'http://localhost:3000', API_OAUTH_CLIENT_ID: process.env.API_OAUTH_CLIENT_ID ?? '3nxoth_gyetHdpjKp2WYkND1PUQlvYcjXQHW9ZdDxq4', diff --git a/pages/_document.page.tsx b/pages/_document.page.tsx index c3557a7700..0e086b278f 100644 --- a/pages/_document.page.tsx +++ b/pages/_document.page.tsx @@ -42,7 +42,7 @@ class MyDocument extends Document { {process.env.HELPJUICE_ORIGIN && (