@shopbite-de/storefront 1.26.1 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.github/workflows/build.yaml +1 -1
  2. package/.github/workflows/ci.yaml +3 -3
  3. package/.gitignore +40 -0
  4. package/CLAUDE.md +9 -2
  5. package/app/app.vue +4 -1
  6. package/app/components/Hero.vue +17 -7
  7. package/app/components/User/RegistrationForm.vue +73 -29
  8. package/app/composables/useStoreStatus.ts +12 -7
  9. package/app/composables/useSyncWishlist.ts +119 -0
  10. package/app/pages/[...all].vue +9 -3
  11. package/app/pages/index.vue +1 -5
  12. package/app/pages/kontakt.vue +1 -5
  13. package/app/pages/registrierung/bestaetigen.vue +100 -27
  14. package/app/pages/registrierung/index.vue +20 -1
  15. package/app/utils/notFound.ts +14 -0
  16. package/content/index.yml +9 -9
  17. package/docs/notes/2026-09-21-dependency-update.md +89 -0
  18. package/docs/notes/2026-09-21-issue-273-cache-and-demo-video.md +49 -0
  19. package/docs/notes/2026-09-21-issue-363-non-fatal-404.md +43 -0
  20. package/docs/notes/2026-09-21-issue-365-home-hydration-mismatch.md +47 -0
  21. package/docs/notes/2026-09-21-issue-366-wishlist-404.md +41 -0
  22. package/docs/notes/2026-09-21-issue-369-register-confirm.md +35 -0
  23. package/modules/public-cache.ts +44 -0
  24. package/node.dockerfile +3 -3
  25. package/nuxt.config.ts +6 -0
  26. package/package.json +26 -26
  27. package/patches/@shopware__nuxt-module@1.5.2.patch +13 -0
  28. package/pnpm-workspace.yaml +3 -1
  29. package/shopware.d.ts +1 -1
  30. package/test/nuxt/Hero.test.ts +60 -2
  31. package/test/nuxt/RegisterConfirmPage.test.ts +117 -0
  32. package/test/nuxt/RegistrationForm.test.ts +132 -2
  33. package/test/nuxt/notFound.test.ts +13 -0
  34. package/test/nuxt/useSearchTracking.test.ts +3 -0
  35. package/test/nuxt/useStoreStatus.test.ts +40 -10
  36. package/test/nuxt/useSyncWishlist.test.ts +85 -0
  37. package/test/unit/publicCache.spec.ts +64 -0
  38. package/patches/@shopware__nuxt-module@1.5.1.patch +0 -32
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { ApiClientError } from "@shopware/api-client";
3
+
2
4
  useSeoMeta({
3
5
  title: "Registrierung bestätigen",
4
6
  });
@@ -7,42 +9,113 @@ const route = useRoute();
7
9
  const toast = useToast();
8
10
 
9
11
  const { apiClient } = useShopwareContext();
12
+ const { refreshSessionContext } = useSessionContext();
13
+ const { refreshCart } = useCart();
14
+ const { mergeWishlistProducts } = useWishlist();
10
15
 
11
- const emParameter = computed(() => route.query.em as string | undefined);
12
- const hashParameter = computed(() => route.query.hash as string | undefined);
16
+ type ConfirmError = "invalid" | "already-confirmed";
13
17
 
14
- const { mergeWishlistProducts } = useWishlist();
18
+ const error = ref<ConfirmError | null>(null);
19
+
20
+ const errorMessages: Record<
21
+ ConfirmError,
22
+ { title: string; description: string }
23
+ > = {
24
+ invalid: {
25
+ title: "Bestätigung fehlgeschlagen",
26
+ description:
27
+ "Der Bestätigungslink ist ungültig oder unvollständig. Bitte öffne den Link aus der Bestätigungs-E-Mail erneut oder kontaktiere uns.",
28
+ },
29
+ "already-confirmed": {
30
+ title: "Konto bereits bestätigt",
31
+ description:
32
+ "Dein Konto ist schon bestätigt. Du kannst dich jetzt anmelden.",
33
+ },
34
+ };
35
+
36
+ function toConfirmError(e: unknown): ConfirmError {
37
+ const errors = e instanceof ApiClientError ? e.details?.errors : undefined;
38
+ if (
39
+ Array.isArray(errors) &&
40
+ errors.some((err) => err.code === "CHECKOUT__CUSTOMER_IS_ALREADY_CONFIRMED")
41
+ ) {
42
+ return "already-confirmed";
43
+ }
44
+ return "invalid";
45
+ }
46
+
47
+ async function confirmRegistration() {
48
+ const em = route.query.em;
49
+ const hash = route.query.hash;
50
+ if (typeof em !== "string" || typeof hash !== "string" || !em || !hash) {
51
+ error.value = "invalid";
52
+ return;
53
+ }
15
54
 
16
- await useAsyncData("register-confirm", async () => {
17
55
  try {
18
- if (!emParameter.value || !hashParameter.value) {
19
- throw new Error("Missing required parameters");
20
- }
21
-
22
- return await apiClient.invoke(
23
- "registerConfirm post /account/register-confirm",
24
- {
25
- body: {
26
- em: emParameter.value,
27
- hash: hashParameter.value,
28
- },
29
- },
30
- );
56
+ await apiClient.invoke("registerConfirm post /account/register-confirm", {
57
+ body: { em, hash },
58
+ });
31
59
  } catch (e) {
32
60
  console.error("Registration confirmation failed:", e);
33
- return null;
61
+ error.value = toConfirmError(e);
62
+ return;
34
63
  }
35
- });
36
64
 
37
- mergeWishlistProducts();
38
- toast.add({
39
- title: "Bestätigung erfolgreich!",
40
- description: "Jetzt anmelden und los legen.",
41
- color: "success",
42
- });
43
- navigateTo({ path: "/konto" });
65
+ // Shopware logs the customer in with the confirmation and switches the
66
+ // context token, so load the new session before opening the account.
67
+ await refreshSessionContext();
68
+ refreshCart();
69
+ mergeWishlistProducts();
70
+ toast.add({
71
+ title: "Bestätigung erfolgreich!",
72
+ description: "Willkommen, dein Konto ist jetzt aktiv.",
73
+ color: "success",
74
+ });
75
+ await navigateTo({ path: "/konto" });
76
+ }
77
+
78
+ // The route is client-side rendered (routeRules), so this never runs on the
79
+ // server.
80
+ confirmRegistration();
44
81
  </script>
45
82
 
46
83
  <template>
47
- <UContainer> Etwas ist schief gelaufen </UContainer>
84
+ <UContainer>
85
+ <div class="max-w-xl mx-auto mt-16">
86
+ <div
87
+ v-if="!error"
88
+ class="flex items-center justify-center gap-2 text-muted"
89
+ role="status"
90
+ >
91
+ <UIcon name="i-lucide-loader-circle" class="size-5 animate-spin" />
92
+ Registrierung wird bestätigt …
93
+ </div>
94
+ <UAlert
95
+ v-else
96
+ :color="error === 'already-confirmed' ? 'info' : 'error'"
97
+ variant="subtle"
98
+ :icon="
99
+ error === 'already-confirmed'
100
+ ? 'i-lucide-circle-check'
101
+ : 'i-lucide-circle-alert'
102
+ "
103
+ :title="errorMessages[error].title"
104
+ :description="errorMessages[error].description"
105
+ :actions="[
106
+ { label: 'Zur Anmeldung', to: '/anmelden', color: 'neutral' },
107
+ ...(error === 'invalid'
108
+ ? [
109
+ {
110
+ label: 'Kontakt',
111
+ to: '/kontakt',
112
+ color: 'neutral' as const,
113
+ variant: 'outline' as const,
114
+ },
115
+ ]
116
+ : []),
117
+ ]"
118
+ />
119
+ </div>
120
+ </UContainer>
48
121
  </template>
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import type { Schemas } from "#shopware";
3
+
2
4
  useSeoMeta({
3
5
  title: "Registrieren",
4
6
  });
@@ -14,6 +16,20 @@ watch(isLoggedIn, (isLoggedIn) => {
14
16
  navigateTo({ path: "/konto" });
15
17
  }
16
18
  });
19
+
20
+ function onRegistrationSuccess(
21
+ _data: unknown,
22
+ customer: Schemas["Customer"] | undefined,
23
+ ) {
24
+ // With double opt-in the customer stays inactive until the e-mail link is
25
+ // clicked, so there is no account session to show yet.
26
+ if (customer?.doubleOptInRegistration && !customer?.active) {
27
+ navigateTo("/anmelden");
28
+ return;
29
+ }
30
+
31
+ navigateTo("/konto");
32
+ }
17
33
  </script>
18
34
 
19
35
  <template>
@@ -23,6 +39,9 @@ watch(isLoggedIn, (isLoggedIn) => {
23
39
  title="Registrieren"
24
40
  description="Erstelle dein Kundenkonto."
25
41
  >
26
- <UserRegistrationForm @registration-success="navigateTo('/konto')" />
42
+ <UserRegistrationForm
43
+ :allow-guest="false"
44
+ @registration-success="onRegistrationSuccess"
45
+ />
27
46
  </UPageSection>
28
47
  </template>
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 404 for a page without content. On the server Nuxt renders the error page
3
+ * for every error, and Nitro logs a `[request error] [fatal]` block for fatal
4
+ * ones, which scanner traffic (`/.env`, `/.git/config`) turned into hundreds
5
+ * of error logs a day (#363). In the browser only a fatal error shows the
6
+ * error page, so it stays fatal there for client-side navigation.
7
+ */
8
+ export function createNotFoundError(statusMessage = "Page not found") {
9
+ return createError({
10
+ statusCode: 404,
11
+ statusMessage,
12
+ fatal: import.meta.client,
13
+ });
14
+ }
package/content/index.yml CHANGED
@@ -6,7 +6,7 @@ title: ShopBite
6
6
  description: Reduziere Kosten und steigere deinen Umsatz
7
7
  hero:
8
8
  title: Frisch gekocht, schnell geliefert.
9
- backgroundVideo: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/f8/66/7e/1789150226/background.mp4?ts=1789150226
9
+ backgroundVideo: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/97/67/24/1789985382/hero-demo-540p.mp4?ts=1789985382
10
10
  poster: /hero-poster.webp
11
11
  headline: SHOPBITE
12
12
  usps:
@@ -74,17 +74,17 @@ gallery:
74
74
  variant: subtle
75
75
  trailingIcon: i-lucide-phone
76
76
  images:
77
- - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/be/7b/ba/1789148625/restaurant1.webp?ts=1789148625
77
+ - image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/be/7b/ba/1789148625/restaurant1.webp?ts=1789148625
78
78
  alt: La Fattoria Restaurant Innenbereich 1
79
- - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/7c/a7/1c/1789148639/restaurant2.webp?ts=1789148639
79
+ - image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/7c/a7/1c/1789148639/restaurant2.webp?ts=1789148639
80
80
  alt: La Fattoria Restaurant Innenbereich 2
81
- - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/94/27/0b/1789148651/restaurant3.webp?ts=1789148651
81
+ - image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/94/27/0b/1789148651/restaurant3.webp?ts=1789148651
82
82
  alt: La Fattoria Restaurant Innenbereich 3
83
- - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
83
+ - image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
84
84
  alt: La Fattoria Restaurant Innenbereich 4
85
- - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/41/1b/09/1789148680/restaurant5.webp?ts=1789148680
85
+ - image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/41/1b/09/1789148680/restaurant5.webp?ts=1789148680
86
86
  alt: La Fattoria Restaurant Innenbereich 5
87
- - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/5b/d1/f9/1789148692/restaurant6.webp?ts=1789148692
87
+ - image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/5b/d1/f9/1789148692/restaurant6.webp?ts=1789148692
88
88
  alt: La Fattoria Restaurant Innenbereich 6
89
89
 
90
90
  mittagstisch:
@@ -93,7 +93,7 @@ mittagstisch:
93
93
  description: Jetzt auch Samstags!
94
94
  reverse: true
95
95
  orientation: horizontal
96
- image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
96
+ image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
97
97
  imageAlt: Illustration
98
98
  features:
99
99
  - title: Montag bis Samstag
@@ -114,7 +114,7 @@ mittagstisch:
114
114
  cta:
115
115
  title: Jetzt bestellen!
116
116
  description: Genieße die italienische Küche, frisch zubereitet und direkt zu dir geliefert oder vor Ort genießen.
117
- backgroundImage: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/60/5f/0e/1789148993/footer-cta.webp?ts=1789148993
117
+ backgroundImage: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/60/5f/0e/1789148993/footer-cta.webp?ts=1789148993
118
118
  links:
119
119
  - label: Zur Speisekarte
120
120
  to: /speisekarte/
@@ -0,0 +1,89 @@
1
+ # Dependency update — 2026-09-21
2
+
3
+ Branch `chore/dependency-update-2026-09-21`. Previous round:
4
+ `2026-09-07-dependency-update.md`.
5
+
6
+ ## Packages
7
+
8
+ | Package | From | To |
9
+ | --- | --- | --- |
10
+ | @shopware/api-client | 1.5.1 | 1.6.0 |
11
+ | @shopware/composables | 1.12.1 | 1.13.0 |
12
+ | @shopware/helpers | 1.7.2 | 1.8.0 |
13
+ | @shopware/nuxt-module | 1.5.1 | 1.5.2 |
14
+ | @vueuse/core | 14.4.0 | 15.0.0 (major) |
15
+ | dotenv | 17.4.2 | 18.0.1 (major) |
16
+ | @sentry/nuxt | 10.73.0 | 10.75.0 |
17
+ | vue (compiler-dom, server-renderer) | 3.5.42 | 3.5.43 |
18
+ | eslint / prettier / jsdom / @vue/test-utils / @types/node | | latest minor/patch |
19
+ | pnpm | 10.34.5 | 12.5.1 (major, see below) |
20
+
21
+ Held back, as in the previous round:
22
+
23
+ - **typescript 7**: typescript-eslint 8.70 still declares `typescript >=4.8.4 <6.1.0`.
24
+ - **@nuxt/devtools-kit 4**: only a beta (`4.0.0-beta.1`).
25
+
26
+ ## What needed changes
27
+
28
+ ### @shopware/nuxt-module 1.5.2
29
+
30
+ 1.5.2 gives its plugin the explicit `Plugin<…>` type upstream (the main
31
+ reason for our patch, see `2026-09-08-issue-277-typecheck.md`). The plugin
32
+ still imports `ShopwareNuxtOptions` from `./src`, which the package does not
33
+ ship, so the patch shrinks to that one import (`./dist/index`):
34
+ `patches/@shopware__nuxt-module@1.5.2.patch`.
35
+
36
+ ### @shopware/api-client 1.6.0: operation renamed
37
+
38
+ `createOrderFromQuote post /quote/order/{id}` is now
39
+ `createOrderFromQuote post /quote/{id}/order`. `shopware.d.ts` re-maps that
40
+ operation's response to our `Order` schema, so the key had to follow;
41
+ otherwise `useB2bQuoteManagement` fails the typecheck (`extensions` of
42
+ `order_line_item` differ between the default and our generated types).
43
+
44
+ ### @shopware/composables 1.13.0
45
+
46
+ `useSyncWishlist` and `useWishlist` are unchanged from 1.12.1; our override
47
+ (`app/composables/useSyncWishlist.ts`, #366) stays valid.
48
+
49
+ ### @vueuse/core 15 / dotenv 18
50
+
51
+ vueuse 15 drops Node 20 and the deprecated timer options (we call
52
+ `useIntervalFn(fn, ms)` without options); CI and the Docker image run Node 24.
53
+ dotenv 18 only adds a CLI and an opt-in parser; `playwright.config.ts` is
54
+ unaffected.
55
+
56
+ ### pnpm 12
57
+
58
+ - Since pnpm 11 `.npmrc` is read for auth/registry only.
59
+ `shamefully-hoist=true` moved to `pnpm-workspace.yaml` (`shamefullyHoist`),
60
+ `.npmrc` is gone (also from `node.dockerfile`'s `COPY`).
61
+ - pnpm 12 fails on unknown keys in `pnpm-workspace.yaml` when the pinned
62
+ version matches.
63
+ - **`minimumReleaseAge` defaults to 24 hours.** A lockfile resolved with
64
+ pnpm 10 on the same day contained three transitive packages published
65
+ within the last 24 hours (`@asamuzakjp/css-color` 7.0.1, `whatwg-url`
66
+ 17.1.2, `yargs` 18.2.0) and was rejected
67
+ (`ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`); `pnpm update` cannot fix that,
68
+ because the check runs before resolution. The update was redone with
69
+ pnpm 12 on top of `main`'s lockfile, which resolves the previous versions.
70
+ Keep the default: it is a supply-chain safeguard.
71
+ - pnpm 12 also re-resolved the `workbox-build`/`workbox-window` peers of
72
+ `vite-plugin-pwa` to 7.4.1 (pnpm 10 kept 7.3.0 and printed unmet-peer
73
+ warnings on every update).
74
+ - Pinned in `package.json` (`packageManager`), `.github/workflows/ci.yaml`,
75
+ `.github/workflows/build.yaml` and `node.dockerfile` (`PNPM_VERSION`, was
76
+ still 10.32.1).
77
+ - `pnpm peers check` lists three unmet peers deep in Nuxt tooling
78
+ (`cac` for `@bomb.sh/tab`, `oxc-parser` and `unplugin` for `unctx`);
79
+ nothing to fix on our side.
80
+
81
+ ## Verification
82
+
83
+ - `pnpm eslint`, `pnpm prettier`, `pnpm typecheck` (0 errors),
84
+ `pnpm test:unit` (302 tests), `pnpm build`, `pnpm install --frozen-lockfile`
85
+ — all with pnpm 12.5.1.
86
+ - `docker build -f node.dockerfile --target build` (corepack pnpm 12.5.1).
87
+ - Production build against the demo backend: menu with 63 products, quick
88
+ view, add to cart (line-item request), item in `/bestellung/warenkorb`, no
89
+ console errors.
@@ -0,0 +1,49 @@
1
+ # Issue #273 follow-up: cache headers, demo video, acceptance
2
+
3
+ Follow-up to `2026-09-10-issue-273-performance-media.md` (PR #308).
4
+
5
+ ## State on 2026-09-21
6
+
7
+ - Object storage media (demo and La Fattoria) send
8
+ `public, max-age=31536000, immutable`: done on the buckets.
9
+ - Homepage docs cover poster, video size, thumbnails and the bucket header.
10
+ - Remaining requests without a useful cache lifetime on demo.shopbite.de:
11
+ - files from `public/` (`/hero-poster.webp`, `/favicon.ico`, `/light/Logo.png`):
12
+ no `Cache-Control` at all. Nitro only adds one for public asset dirs with
13
+ their own `baseURL`; `public/` is mounted at `/` with `fallthrough`, and
14
+ the static handler never sets the header.
15
+ - `/_ipx/*` (resized logo): IPX default `max-age=60`.
16
+ - `analytics.shopbite.de/matomo.js`: TTL 0, Matomo server config, not
17
+ in this repository.
18
+ - The demo hero video was still the 27.6 MB original (2560×1440, 18 s, with
19
+ audio); Lighthouse desktop runs that loaded it weighed 27.7 MB.
20
+
21
+ ## Changes
22
+
23
+ - `modules/public-cache.ts`: route rule with
24
+ `public, max-age=2592000, stale-while-revalidate=86400` per file in the
25
+ `public/` folder of every layer (checked with an app extending the layer:
26
+ its own files get the rule, `/` does not). 30 days, not immutable, because
27
+ the names are not fingerprinted.
28
+ - `image.ipx.maxAge: 2592000`. A route rule does not reach IPX: it runs as its
29
+ own node handler and only checks its own response headers.
30
+ - Demo video: first 8 s, 960×540, 24 fps, no audio, CRF 32, faststart:
31
+ 0.98 MB, uploaded as a new Shopware media `hero-demo-540p` (the original
32
+ `background.mp4` stays in the media folder); `content/index.yml` points to it.
33
+
34
+ ```
35
+ ffmpeg -ss 0 -t 8 -i background.mp4 -vf "scale=960:-2" -r 24 -c:v libx264 -crf 32 \
36
+ -preset slow -pix_fmt yuv420p -an -movflags +faststart hero-demo-540p.mp4
37
+ ```
38
+
39
+ ## Lighthouse (demo.shopbite.de, before this change)
40
+
41
+ Local Lighthouse 13.4, simulated throttling, 8 mobile runs: median score 75
42
+ (64–90), LCP 5.2 s, TBT 160 ms, CLS 0. Desktop 89–99. PageSpeed Insights was not
43
+ available (anonymous daily quota).
44
+
45
+ The LCP element is the 19 KB poster. Observed (unthrottled) FCP and LCP are the
46
+ same paint at 0.7–1.5 s; the poster is loaded at 0.6–0.9 s. The simulated LCP
47
+ is high because the first paint happens after the ~42 script requests, which
48
+ the simulation replays on slow 4G. The mobile score is therefore limited by
49
+ the number of JS chunks before the first paint, not by media.
@@ -0,0 +1,43 @@
1
+ # Issue #363: 404 pages logged as fatal request errors
2
+
3
+ ## Finding
4
+
5
+ Nitro (`nitropack/dist/runtime/internal/error/prod.mjs`) logs a
6
+ `[request error] [fatal|unhandled] [GET] <url>` block with the full error
7
+ object only for errors that are `fatal` or `unhandled`. The catch-all page, the
8
+ home page and `/kontakt` threw their 404 with `fatal: true`, so every scanner
9
+ request (`/.env`, `/.git/config`, `/api/v1/.env`, …) produced such a block.
10
+
11
+ Container logs in OpenObserve (`docker_logs`, 2026-09-19 to 2026-09-21):
12
+
13
+ | Container | `[fatal]` blocks (3 days) |
14
+ | ----------------------- | ------------------------- |
15
+ | `lafattoria-storefront` | ~2,500 |
16
+ | `shopbite-storefront` | 565 |
17
+ | `shopbite-homepage` | 423 (same pattern, own repo) |
18
+
19
+ `fatal` cannot simply be dropped: Nuxt's root component
20
+ (`nuxt/dist/app/components/nuxt-root.vue`, `onErrorCaptured`) shows the error
21
+ page on the server for every error, but in the browser only for fatal ones. A
22
+ non-fatal 404 during client-side navigation would leave the page blank.
23
+
24
+ ## Fix
25
+
26
+ `createNotFoundError()` (`app/utils/notFound.ts`) throws the 404 with
27
+ `fatal: import.meta.client`. The catch-all page passes 5xx errors of the content
28
+ route on as a fatal 500 (logged, a real failure); 4xx of that route count as
29
+ "not found" (it rejects over-long scanner paths with 400).
30
+
31
+ ## Verification
32
+
33
+ Production build against the demo backend: `/.env`, `/.git/config`,
34
+ `/firebase-key.json`, `/gibtesnicht` and a 300-character path return 404 with
35
+ the error page and add no line to the server log; `/` is 200. Client-side
36
+ navigation to an unknown path still shows the error page.
37
+
38
+ ## Other findings
39
+
40
+ - 117 `[unhandled]` errors on `/api/category|listing|product/*` at La Fattoria,
41
+ all on 2026-09-19 18:00 UTC: the Shopware backend answered with
42
+ `404 page not found` (backend unreachable). Logged correctly; the URL shows a
43
+ double slash (`/store-api//category/…`) because the endpoint env ends in `/`.
@@ -0,0 +1,47 @@
1
+ # Issue #365: hydration mismatch on the home page
2
+
3
+ ## Cause
4
+
5
+ The hero status line ("Geöffnet bis …" / "Geschlossen · öffnet …") was
6
+ rendered on the server. `useRestaurantSchema` (home page JSON-LD, #272)
7
+ prefetches business hours and holidays with `onServerPrefetch`, so
8
+ `useStoreStatus` had data on the server and computed the status with the
9
+ **server's** clock and time zone. The browser computed it again during
10
+ hydration with its own clock. Whenever the two disagreed (a UTC server is two
11
+ hours behind the shop in Europe/Berlin, which often crosses an opening
12
+ boundary), Vue reported `Hydration completed but contains mismatches.`
13
+
14
+ In production Vue does not rectify class mismatches, so affected visitors could
15
+ also see the wrong open/closed dot.
16
+
17
+ ## Reproduction
18
+
19
+ The demo backend is open 00:00–23:59, so the real clock never differs. With
20
+ Playwright's clock set to 23:59:30 Europe/Berlin while the dev server renders
21
+ at the real time:
22
+
23
+ ```
24
+ [Vue warn]: Hydration text mismatch … rendered on server: " Geöffnet bis 23:59"
25
+ - expected on client: " Geschlossen · öffnet morgen um 00:00 Uhr" at <Hero …>
26
+ [Vue warn]: Hydration class mismatch … bg-green-400 … expected bg-neutral-400
27
+ Hydration completed but contains mismatches.
28
+ ```
29
+
30
+ ## Fix
31
+
32
+ - `useStoreStatus`: `now` is `null` until the component is mounted, so the
33
+ status is `null` on the server and during hydration for every consumer
34
+ (hero, feature card, footer).
35
+ - Hero status line: on phones status and delivery time get one fixed row each
36
+ (`grid-rows-[1.5rem_1.5rem]`); a long status is truncated instead of wrapping.
37
+ The delivery time does not depend on the clock and is rendered on the server.
38
+ From `sm` both share one row as before, and the delivery time waits for the
39
+ status. Measured SSR vs hydrated at 360, 390 and 1280 px: status line height
40
+ and the CTA position are identical.
41
+
42
+ ## Open
43
+
44
+ - RUM verification (acceptance: < 1 % of sessions for 48 h) needs OpenObserve;
45
+ on 2026-09-21 its host served only the Traefik default certificate.
46
+ - At 360 px the longest status ("öffnet Mittwoch, 23.09. um 17:30 Uhr") is
47
+ truncated.
@@ -0,0 +1,41 @@
1
+ # Issue #366: wishlist 404 logged as an error
2
+
3
+ ## Finding
4
+
5
+ `useSyncWishlist` of `@shopware/composables` (1.12.1) catches every error of
6
+ `readCustomerWishlist post /customer/wishlist` and logs it with
7
+ `console.error`. Two responses are expected states, not errors:
8
+
9
+ | Response | Code | When |
10
+ | -------- | ------------------------------------- | -------------------------------------------- |
11
+ | 404 | `CHECKOUT__WISHLIST_NOT_FOUND` | logged-in customer who never saved a product |
12
+ | 403 | `CHECKOUT__WISHLIST_IS_NOT_ACTIVATED` | wishlist disabled in Shopware (demo shop) |
13
+
14
+ The log happens inside the layer, so a `try/catch` around
15
+ `getWishlistProducts()` in `app.vue` cannot suppress it. The layer's
16
+ `useWishlist` also calls it after login (`mergeWishlistProducts`).
17
+
18
+ The guard in `app.vue` checked the route name for `wishlist`, but the page is
19
+ `merkliste`, so `/merkliste` fetched the wishlist twice (`app.vue` and
20
+ `components/Wishlist.vue`).
21
+
22
+ ## Fix
23
+
24
+ - `app/composables/useSyncWishlist.ts` overrides the layer composable (a
25
+ project composable with the same name also replaces it inside the layer's
26
+ `useWishlist`). It is a copy of 1.12.1 that skips the log for the two codes
27
+ above. Compare with the layer source when Renovate bumps
28
+ `@shopware/composables`.
29
+ - `app.vue` compares the route name with `merkliste`.
30
+
31
+ ## Verification (2026-09-21)
32
+
33
+ Dev server against `shopware.shopbite.de` with a logged-in test customer: one
34
+ wishlist request on `/` and one on `/merkliste`, no
35
+ `[useSyncWishlist][getWishlistProducts][error]` in the console. The browser
36
+ still prints its own "Failed to load resource" line for the 403/404 response;
37
+ that is not a JavaScript error and cannot be suppressed from the page.
38
+
39
+ `storefront/.env` currently points at the La Fattoria production backend; to test
40
+ against the demo, set `NUXT_PUBLIC_SHOPWARE_ENDPOINT`/`_ACCESS_TOKEN` in the
41
+ environment (they take precedence over `.env`).
@@ -0,0 +1,35 @@
1
+ # Issue #369: registration confirmation reported success on failure
2
+
3
+ ## Finding
4
+
5
+ `app/pages/registrierung/bestaetigen.vue` swallowed every error of
6
+ `registerConfirm post /account/register-confirm` and then always showed the
7
+ success toast and navigated to `/konto`.
8
+
9
+ Even the success path was broken: Shopware's `RegisterConfirmRoute::confirm()`
10
+ logs the customer in (it replaces the context token and returns it in the
11
+ `sw-context-token` header), but the page never reloaded the session context.
12
+ `useUser().isLoggedIn` stayed `false`, so the `account` layout sent the visitor
13
+ on to `/anmelden`.
14
+
15
+ Error codes (checked against `shopware.shopbite.de` and the Shopware 6.7 source, 2026-09-21):
16
+
17
+ | Case | Status | Code |
18
+ | ------------------------ | ------ | ----------------------------------------- |
19
+ | unknown hash | 404 | `CHECKOUT__CUSTOMER_NOT_FOUND_BY_HASH` |
20
+ | no hash | 404 | `CHECKOUT__NO_HASH_PROVIDED` |
21
+ | link already used | 404 | `CHECKOUT__CUSTOMER_IS_ALREADY_CONFIRMED` |
22
+ | `em` does not match mail | 400 | validation error |
23
+
24
+ ## Fix
25
+
26
+ - Missing `em`/`hash` query parameters: no API call, error shown.
27
+ - Success: `refreshSessionContext()` + `refreshCart()` (like `useUser().login`),
28
+ merge the wishlist, toast, `/konto`.
29
+ - Already confirmed: info alert with a link to `/anmelden`.
30
+ - Any other failure: error alert with links to `/anmelden` and `/kontakt`.
31
+ Shopware has no Store API route to resend the double opt-in mail, so the page
32
+ cannot offer that.
33
+
34
+ The route stays client-side rendered (`routeRules`), so the confirmation runs
35
+ once in the browser; `useAsyncData` is no longer needed.
@@ -0,0 +1,44 @@
1
+ import { existsSync, readdirSync } from "node:fs";
2
+ import { relative, resolve, sep } from "node:path";
3
+ import type { Nuxt } from "nuxt/schema";
4
+
5
+ // Files in public/ are not fingerprinted, so they get 30 days instead of the
6
+ // year (immutable) of /_nuxt/: a file replaced under the same name reaches
7
+ // returning visitors within 30 days, so replace files under a new name (#273).
8
+ export const PUBLIC_CACHE_CONTROL =
9
+ "public, max-age=2592000, stale-while-revalidate=86400";
10
+
11
+ function listFiles(dir: string): string[] {
12
+ return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
13
+ const path = resolve(dir, entry.name);
14
+ return entry.isDirectory() ? listFiles(path) : [path];
15
+ });
16
+ }
17
+
18
+ /**
19
+ * Cache-Control for the files in public/ of every layer (the shop's and this
20
+ * storefront's): Nitro serves them without it. A route rule per file keeps
21
+ * the header off the HTML pages. Images resized by IPX (`/_ipx`) get the same
22
+ * lifetime through `image.ipx.maxAge` in nuxt.config.ts.
23
+ */
24
+ export default function publicCache(_options: unknown, nuxt: Nuxt) {
25
+ const rules = (nuxt.options.routeRules ??= {});
26
+ const headers = { "cache-control": PUBLIC_CACHE_CONTROL };
27
+
28
+ for (const layer of nuxt.options._layers) {
29
+ const { config } = layer;
30
+ const publicDir = resolve(
31
+ config.srcDir || layer.cwd,
32
+ config.dir?.public || "public",
33
+ );
34
+ if (!existsSync(publicDir)) continue;
35
+
36
+ for (const file of listFiles(publicDir)) {
37
+ const path = "/" + relative(publicDir, file).split(sep).join("/");
38
+ rules[path] = {
39
+ ...rules[path],
40
+ headers: { ...headers, ...rules[path]?.headers },
41
+ };
42
+ }
43
+ }
44
+ }
package/node.dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  FROM node:24-alpine AS build
3
3
 
4
- ARG PNPM_VERSION=10.32.1
4
+ ARG PNPM_VERSION=12.5.1
5
5
  ARG NUXT_PUBLIC_SHOPWARE_ENDPOINT='https://my.shop/store-api'
6
6
  ARG NUXT_PUBLIC_SHOPWARE_ACCESS_TOKEN='TOKEN'
7
7
 
@@ -15,9 +15,9 @@ WORKDIR /app
15
15
  RUN corepack enable && corepack prepare pnpm@${PNPM_VERSION} --activate
16
16
 
17
17
  # Copy manifests first so dependency layer is cached independently from source changes.
18
- # pnpm-workspace.yaml (allowBuilds, patchedDependencies) and patches/ are part of the
18
+ # pnpm-workspace.yaml (settings, allowBuilds, patchedDependencies) and patches/ are part of the
19
19
  # lockfile contract; without them `--frozen-lockfile` fails.
20
- COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
20
+ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
21
21
  COPY patches ./patches
22
22
  RUN pnpm install --frozen-lockfile --prefer-offline
23
23
 
package/nuxt.config.ts CHANGED
@@ -155,6 +155,12 @@ export default defineNuxtConfig({
155
155
  },
156
156
  },
157
157
 
158
+ image: {
159
+ // Logos resized by IPX: 30 days like the files in public/
160
+ // (modules/public-cache.ts, #273) instead of IPX's 60 seconds.
161
+ ipx: { maxAge: 2592000 },
162
+ },
163
+
158
164
  shopware: {
159
165
  endpoint: "",
160
166
  accessToken: "",