We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents adb9095 + 7ef150f commit 207bbfdCopy full SHA for 207bbfd
apps/learner-web-app/src/hooks/usePageViewCount.ts
@@ -23,8 +23,9 @@ export function usePageViewCount(path: string | null | undefined) {
23
24
try {
25
const response = await fetch(
26
- `/api/analytics/pageviews?path=${encodeURIComponent(path)}`
+ `${process.env.NEXT_PUBLIC_LEARNER_SBPLAYER?.replace("/sbplayer", "")}/api/analytics/pageviews?path=${encodeURIComponent(path)}`
27
);
28
+
29
30
const data: PageViewResponse = await response.json();
31
0 commit comments