Skip to content

Commit 200d6cf

Browse files
nav events only on prod
1 parent 5e363d1 commit 200d6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/navigation-events.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function NavigationEvents() {
1212
// TODO: create simpler logic
1313
const slug = pathname?.split('/blog/').slice(1).join('/').split('#')[0]
1414

15-
if (slug) {
15+
if (slug && process.env.NODE_ENV === 'production') {
1616
fetch('/api/posts/' + slug, {
1717
method: 'POST',
1818
headers: {

0 commit comments

Comments
 (0)