We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675798d commit e1f25baCopy full SHA for e1f25ba
app/api/ab-config/route.ts
@@ -1,6 +1,6 @@
1
import { NextResponse } from "next/server"
2
3
-import { IS_PREVIEW_DEPLOY } from "@/lib/utils/env"
+import { IS_PREVIEW_DEPLOY, IS_PROD } from "@/lib/utils/env"
4
5
import type { ABTestConfig, MatomoExperiment } from "@/lib/ab-testing/types"
6
@@ -33,7 +33,8 @@ const getPreviewConfig = () => ({
33
34
export async function GET() {
35
// Preview mode: Show menu with original default
36
- if (IS_PREVIEW_DEPLOY) return NextResponse.json(getPreviewConfig())
+ if (!IS_PROD || IS_PREVIEW_DEPLOY)
37
+ return NextResponse.json(getPreviewConfig())
38
39
try {
40
const matomoUrl = process.env.NEXT_PUBLIC_MATOMO_URL
0 commit comments