Skip to content

Commit 207bbfd

Browse files
authored
Merge pull request #2330 from tekdi/feat-prod-fix
Feat prod fix to 13 prod
2 parents adb9095 + 7ef150f commit 207bbfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/learner-web-app/src/hooks/usePageViewCount.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ export function usePageViewCount(path: string | null | undefined) {
2323

2424
try {
2525
const response = await fetch(
26-
`/api/analytics/pageviews?path=${encodeURIComponent(path)}`
26+
`${process.env.NEXT_PUBLIC_LEARNER_SBPLAYER?.replace("/sbplayer", "")}/api/analytics/pageviews?path=${encodeURIComponent(path)}`
2727
);
28+
2829

2930
const data: PageViewResponse = await response.json();
3031

0 commit comments

Comments
 (0)