From 518c2b33e1b764060ac482d3108ff31bc230cb5a Mon Sep 17 00:00:00 2001 From: michaelKurowski Date: Tue, 22 Apr 2025 15:53:34 +0200 Subject: [PATCH 1/6] docs: draft for page router --- docs/content/guides/8.instrumentation.md | 65 ++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 docs/content/guides/8.instrumentation.md diff --git a/docs/content/guides/8.instrumentation.md b/docs/content/guides/8.instrumentation.md new file mode 100644 index 0000000000..ffb22e6f1f --- /dev/null +++ b/docs/content/guides/8.instrumentation.md @@ -0,0 +1,65 @@ +In case if you are extending your contract with Alokai and you have joined us in 2025 or before, you may be required to install Alokai instrumentation as part of your storefront. + +Here is a guide on how to do this, depending on your current situation. + +# Storefront +::tabs{:titles='["Next.js App Router", "Nuxt 3", "Next.js Page Router", "Nuxt 2"]'} + +#tab-1 +If you use `@vue-storefront/next` newer or equal to `6.1.0`, then no action is required. + +#tab-2 +If you use `@vue-storefront/nuxt` newer or equal to `0.2.1`, then no action is required. + +#tab-3 +Go to `pages/_app.tsx + + +```diff +import { getHistoryTraceScript } from '@alokai/instrumentation/client'; + +... + return ( + + ++