Brand strings out of nuxt.config + Header + Footer → app.config + runtimeConfig #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #2
Problem
Brand strings hardcoded in libreshop/shop:
nuxt.config.ts:32—siteUrl: "https://muellerprints-paperwork.com"nuxt.config.ts:58— page title"MUELLERPRINTS - Handgefertigte Notizbücher aus Stuttgart"components/Header.vue:8,50— logo text "MUELLERPRINTS. Paperwork", description "Über MUELLERPRINTS"components/Footer.vue:10,83— footer brand blockAdapters can't override these without forking source. Runtime env can't reach build-time literals.
Acceptance
app.config.ts(layer-mergeable) andruntimeConfig.public(env-overridable)<Header>and<Footer>read brand fromuseAppConfig()/useRuntimeConfig(), no string literalsnuxt.config.tssiteUrl + meta title default to generic "Demo Print Shop"; can be overridden viaNUXT_PUBLIC_SITE_URL,NUXT_PUBLIC_BRAND_NAME,NUXT_PUBLIC_BRAND_TAGLINEuseSeoMetacalls (11 pages: about, agb, anfahrt, datenschutz, impressum, kontakt, oeffnungszeiten, versand, zahlung, cart, checkout/*) read brand from config, not literals