Skip to content

Commit 3ff87b3

Browse files
committed
chore: restore abTestRoutes doc placement
1 parent 83bfe1c commit 3ff87b3

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/lib/ab-testing/flags.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,6 @@ export const defineABFlag = (
8585
adapter: createMatomoAdapter(key),
8686
})
8787

88-
/**
89-
* A/B-tested routes and the flags precomputed for each.
90-
*
91-
* Keys are locale-less canonical paths: English URLs are unprefixed
92-
* (localePrefix: "as-needed"), and non-root paths carry the trailing slash
93-
* per trailingSlash: true. Only the default locale is A/B tested.
94-
*
95-
* Each route gets its own flag group so permutations don't multiply across
96-
* pages. Every route registered here needs a matching coded page under
97-
* app/[locale]/ab-code/[code]/<path> - see docs/ab-testing.md for the recipe.
98-
*/
9988
/**
10089
* Homepage Hero A/B test flag.
10190
* Demo flag - replace with a real experiment.
@@ -120,6 +109,17 @@ export const homepageFlags = [homepageHeroFlag] as const
120109
/** Flags precomputed for /wallets/find-wallet */
121110
export const findWalletFlags = [findWalletHeroFlag] as const
122111

112+
/**
113+
* A/B-tested routes and the flags precomputed for each.
114+
*
115+
* Keys are locale-less canonical paths: English URLs are unprefixed
116+
* (localePrefix: "as-needed"), and non-root paths carry the trailing slash
117+
* per trailingSlash: true. Only the default locale is A/B tested.
118+
*
119+
* Each route gets its own flag group so permutations don't multiply across
120+
* pages. Every route registered here needs a matching coded page under
121+
* app/[locale]/ab-code/[code]/<path> - see docs/ab-testing.md for the recipe.
122+
*/
123123
export const abTestRoutes: Record<string, readonly ABFlag[]> = {
124124
"/": homepageFlags,
125125
"/wallets/find-wallet/": findWalletFlags,

0 commit comments

Comments
 (0)