File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { AnalyticsResponse , EventData } from "@codenificient/analytics-sdk"
22import { NextRequest , NextResponse } from "next/server"
33
4- const ANALYTICS_ENDPOINT = process . env . NEXT_PUBLIC_ANALYTICS_ENDPOINT || ""
4+ const ANALYTICS_ENDPOINT = process . env . NEXT_PUBLIC_ANALYTICS_ENDPOINT || "https://codenalytics.vercel.app/api "
55const API_KEY = process . env . NEXT_PUBLIC_ANALYTICS_API_KEY || "proj_codeniwork_main"
66
77interface AnalyticsRequestPayload {
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export function getAnalytics(): AppAnalytics | null {
9595
9696const defaultConfig : AnalyticsConfig = {
9797 apiKey : process . env . NEXT_PUBLIC_ANALYTICS_API_KEY || "" ,
98- endpoint : process . env . NEXT_PUBLIC_ANALYTICS_ENDPOINT || "" ,
98+ endpoint : process . env . NEXT_PUBLIC_ANALYTICS_ENDPOINT || "https://codenalytics.vercel.app/api " ,
9999 debug : process . env . NODE_ENV === "development" ,
100100 enabled : process . env . NODE_ENV === "production" || process . env . NEXT_PUBLIC_ANALYTICS_ENABLED === "true" ,
101101}
You can’t perform that action at this time.
0 commit comments