Skip to content

Commit

Permalink
fix: make noirlab endpoint public
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Jan 9, 2025
1 parent fc26af3 commit 2b12010
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/molecules/Logo/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
height: 100%;
width: auto;

> img {
& > img {
height: 100%;
max-height: 100%;
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion components/templates/NewsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion lib/api/noirlab/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion openapi-ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2b12010

Please sign in to comment.