mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 13:56:22 -04:00
10 lines
404 B
TypeScript
10 lines
404 B
TypeScript
// 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");
|
|
|
|
// 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.NEXT_PUBLIC_RELEASE_DATE || Date.now()).toISOString();
|