Commit graph

5 commits

Author SHA1 Message Date
ThatGuySam
6fc59d6034 fix(runtime-config): avoid package.json fallback in prerender bundle
The previous verbiage fallback loaded package.json via createRequire(), which broke Astro/Netlify prerender bundling because the relative package.json path is not available inside the generated chunk layout. Replace it with static fallback strings so the app-test text stays populated without depending on runtime file access.

Constraint: Must restore Netlify production builds immediately
Rejected: Revert the verbiage fix entirely | would reintroduce the blank app-test subtitle in production
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep public runtime fallbacks bundle-safe; do not require repo files from prerender/runtime chunks
Tested: pnpm run typecheck (workspace); GitHub Actions failure analysis for netlify-build
Not-tested: Full redeploy completion at commit time
2026-04-04 15:41:03 -05:00
ThatGuySam
e667ab564e fix(app-test): restore runtime verbiage fallbacks
The app-test page could render blank processor/mac verbiage when pnpm did not supply npm_package_config_verbiage_* in the runtime environment. Fall back to package.json config and the page-level computed value so the subtitle and description stay populated in builds and production.

Constraint: Must not change scanner behavior or app-test submission flow
Rejected: Patch only the Vue page text | leaves the public runtime config inconsistent for other consumers
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep publicRuntimeConfig resilient to missing npm_package_config_* env values until the config source is normalized repo-wide
Tested: pnpm run typecheck (workspace); node --input-type=module import of publicRuntimeConfig (workspace)
Not-tested: Full browser rerun for this exact commit beyond the already-green production smoke suite
2026-04-04 15:38:30 -05:00
Sam Carlton
921815ba6b Fix verbiage references in App Test 2022-06-07 14:59:43 -05:00
Sam Carlton
ab11d74bfd Add global.$config Vite definition 2022-05-03 14:26:59 -05:00
Sam Carlton
f6a1dacd54 Add publicRuntimeConfig helper 2022-05-01 11:38:20 -05:00