From f378862b23de900939c5bbbd3923503215ede84d Mon Sep 17 00:00:00 2001 From: ThatGuySam Date: Sun, 15 Mar 2026 12:20:19 -0500 Subject: [PATCH] fix(config): stop relying on global public config --- helpers/config-node.js | 3 ++- src/pages/404.astro | 4 ++-- src/pages/apple-silicon-app-test.astro | 5 +++-- src/pages/benchmarks.astro | 5 +++-- src/pages/categories.astro | 3 ++- src/pages/devices.astro | 3 ++- src/pages/games.astro | 3 ++- src/pages/index.astro | 5 +++-- src/pages/kind/[...kindPath].astro | 3 ++- 9 files changed, 21 insertions(+), 13 deletions(-) diff --git a/helpers/config-node.js b/helpers/config-node.js index d2ed8b7..c24acef 100644 --- a/helpers/config-node.js +++ b/helpers/config-node.js @@ -2,6 +2,7 @@ import TOML from '@iarna/toml' import fs from 'fs-extra' import pkg from '~/package.json' +import { publicRuntimeConfig } from '~/helpers/public-runtime-config.mjs' import { getSiteUrl } from '~/helpers/url.js' import { getRouteType } from '~/helpers/app-derived.js' @@ -155,7 +156,7 @@ export function makeTitle ( listing ) { } export function makeDescription ( listing ) { - return `Latest reported support status of ${ listing.name } on Apple Silicon and ${ this.$config.processorsVerbiage } Processors.` + return `Latest reported support status of ${ listing.name } on Apple Silicon and ${ publicRuntimeConfig.processorsVerbiage } Processors.` } function makeTag ( tag, tagName = 'meta' ) { diff --git a/src/pages/404.astro b/src/pages/404.astro index c0cea4e..8293084 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -1,5 +1,6 @@ --- // import { getPathPartsFromAstroRequest } from '~/helpers/url.js' +import { publicRuntimeConfig } from '~/helpers/public-runtime-config.mjs' import { catchRedirectResponse, applyResponseDefaults @@ -31,7 +32,7 @@ Astro.response.statusText = 'Not found' - diff --git a/src/pages/apple-silicon-app-test.astro b/src/pages/apple-silicon-app-test.astro index c5138e1..7573c17 100644 --- a/src/pages/apple-silicon-app-test.astro +++ b/src/pages/apple-silicon-app-test.astro @@ -1,4 +1,5 @@ --- +import { publicRuntimeConfig } from '~/helpers/public-runtime-config.mjs' import { applyResponseDefaults } from '~/helpers/astro/request.js' @@ -22,7 +23,7 @@ applyResponseDefaults( Astro ) diff --git a/src/pages/benchmarks.astro b/src/pages/benchmarks.astro index e5c3fa0..fec8e35 100644 --- a/src/pages/benchmarks.astro +++ b/src/pages/benchmarks.astro @@ -8,6 +8,7 @@ // https://docs.astro.build/core-concepts/astro-components/ import { DoesItAPI } from '~/helpers/api/client.js' +import { publicRuntimeConfig } from '~/helpers/public-runtime-config.mjs' import { applyResponseDefaults } from '~/helpers/astro/request.js' @@ -117,8 +118,8 @@ for (const video of allVideos) { --- { { {