feat(ab-testing): add Vercel Flags SDK integration with Matomo#17265
Draft
pettinarip wants to merge 10 commits intodevfrom
Draft
feat(ab-testing): add Vercel Flags SDK integration with Matomo#17265pettinarip wants to merge 10 commits intodevfrom
pettinarip wants to merge 10 commits intodevfrom
Conversation
- Add middleware precomputation for A/B test routes - Create matomo adapter for flags sdk - Add ABTest component for precomputed flag values - Add [code] route for static variant generation
- extract error message only in logging to avoid exposing internals - replace middleware regex with string operations for performance - delete unused getAbTestFlagKeys and getMatomoExperimentConfig functions - consolidate duplicate ABTestVariants type definition - simplify double-function adapter factory pattern - add barrel exports for ab-testing module and AB components - add permutation growth warning when exceeding threshold
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…irect The trailingSlash: true config in next.config.js was causing Next.js to 308 redirect after the middleware rewrite, exposing the internal precomputed code URL in the browser address bar. Also enables debug overrides unconditionally to allow testing on all deploys.
Member
Author
|
Major blocker found for this setup that base its solution around Summary: The Vercel Flags SDK A/B testing implementation works correctly on Vercel but fails on Netlify due to a platform bug. The Issue: Netlify converts Evidence:
Related GitHub Issues:
|
Contributor
|
This issue is stale because it has been open 30 days with no activity. |
Member
|
@pettinarip Still holding onto this PR or could we close out? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
/en/→/en/abc123)Key Changes
src/lib/ab-testing/flags.tswith Matomo adapterapp/[locale]/[code]/page.tsxfor A/B tested homepageABTest,TestDebugPanel,TestTrackerfor variant rendering and tracking.claude/skills/ab-testing/SKILL.mdTest plan
USE_MOCK_EXPERIMENTS=trueand verify mock experiments work locally