only reveal a db record via /api/hits if it matches a real page

This commit is contained in:
jake committed 2022-07-06 11:49:41 -04:00
1 parent 8d47958473
commit 155c6cacd9
9 files changed
+82 -76

No files matched your search

+1 -3
View File
@@ -1,9 +1,7 @@
// Next.js constants (not needed in frontend)
import path from "path";
// directory containing .mdx files relative to project root
export const NOTES_DIR = path.join(process.cwd(), "notes");
export const NOTES_DIR = "notes";
// normalize the timestamp saved when building/deploying (see next.config.js) and fall back to right now:
export const RELEASE_DATE = new Date(process.env.RELEASE_DATE || Date.now()).toISOString();