Where to Put Logic in Vue Storefront: Middleware vs. Composables
When building with Vue Storefront, the biggest hurdle is deciding whether the transformation logic should live in the frontend composables or the server middleware.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
When building with Vue Storefront, the biggest hurdle is deciding whether the transformation logic should live in the frontend composables or the server middleware.
Learn how to use Nuxt 3 routeRules to implement hybrid rendering. Configure SSR, SSG, SPA, and ISR per route to optimize performance, SEO, and server load.
Stop guessing between SSR and SSG. Learn how to use Nuxt Route Rules to balance build times, server load, and content freshness for content-heavy applications.
Nuxt’s SSR and hydration can be tricky—especially when mixing server‑side rendering, client‑only components, and hybrid strategies. This guide walks through common pitfalls, practical examples, and a checklist to keep your Nuxt app fast, SEO‑friendly, and free of hydration mismatches.
Learn how to identify and resolve hydration mismatch errors in Nuxt 3. This guide covers diagnostic steps for structural HTML errors, browser-global leaks, and non‑deterministic data.
Learn how to make Nuxt 3’s file‑system routes type‑safe with @nuxt/typescript‑build, see a concrete blog‑post example, and understand the trade‑offs.
Nuxt 3 Route Rules let you assign SSR, SSG, ISR, or SPA per route pattern in nuxt.config.ts. This post shows how to map each route to its optimal strategy, what the config does at build and runtime, and where platform dependencies create sharp edges.
Learn how to implement a custom JSON API route in Nuxt 3 using the Nitro server engine, including setup, production verification, and performance considerations.
Protect Nuxt 3 routes with a minimal server‑side middleware that checks an HTTP‑only cookie. Learn the requirements, design, data boundaries, operational checks, failure modes, and when to change the approach.