From 2b1201039153952706c00e2858a4ed677859e849 Mon Sep 17 00:00:00 2001 From: Alexandra Goff Date: Thu, 9 Jan 2025 10:49:49 -0500 Subject: [PATCH] fix: make noirlab endpoint public --- components/molecules/Logo/styles.module.css | 2 +- components/templates/NewsPage/index.tsx | 2 +- lib/api/noirlab/index.ts | 2 +- openapi-ts.config.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/molecules/Logo/styles.module.css b/components/molecules/Logo/styles.module.css index e0433a09..9562d5d3 100644 --- a/components/molecules/Logo/styles.module.css +++ b/components/molecules/Logo/styles.module.css @@ -7,7 +7,7 @@ height: 100%; width: auto; - > img { + & > img { height: 100%; max-height: 100%; max-width: 100%; diff --git a/components/templates/NewsPage/index.tsx b/components/templates/NewsPage/index.tsx index cf8db2b5..8c13a779 100644 --- a/components/templates/NewsPage/index.tsx +++ b/components/templates/NewsPage/index.tsx @@ -12,7 +12,7 @@ const sanitize = (dirty: string | undefined) => { try { const { hostname: noirLabHostname } = new URL( - `${process.env.NOIRLAB_BASE_URL}` + `${process.env.NEXT_PUBLIC_NOIRLAB_BASE_URL}` ); const sanitizeOptions: IOptions = { allowedTags: [...defaults.allowedTags, "iframe"], diff --git a/lib/api/noirlab/index.ts b/lib/api/noirlab/index.ts index 843fff82..d5c1d829 100644 --- a/lib/api/noirlab/index.ts +++ b/lib/api/noirlab/index.ts @@ -9,7 +9,7 @@ import { import { Locale } from "@/lib/i18n/settings"; client.setConfig({ - baseUrl: process.env.NOIRLAB_BASE_URL, + baseUrl: process.env.NEXT_PUBLIC_NOIRLAB_BASE_URL, }); export const NOIRLabServices = { diff --git a/openapi-ts.config.ts b/openapi-ts.config.ts index 4afdf4c4..59fd8877 100644 --- a/openapi-ts.config.ts +++ b/openapi-ts.config.ts @@ -6,7 +6,7 @@ loadEnvConfig(projectDir); export default defineConfig({ client: "@hey-api/client-fetch", - input: `${process.env.NOIRLAB_BASE_URL}/public/documentation/schema/`, + input: `${process.env.NEXT_PUBLIC_NOIRLAB_BASE_URL}/public/documentation/schema/`, output: { format: "prettier", lint: "eslint",