mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 18:30:30 -04:00
10 lines
466 B
TypeScript
10 lines
466 B
TypeScript
// Next.js constants (not needed in frontend)
|
|
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.NEXT_PUBLIC_RELEASE_DATE ?? Date.now()).toISOString();
|
|
|
|
// detect current backend environment
|
|
export const IS_PROD = process.env.NEXT_PUBLIC_VERCEL_ENV === "production";
|
|
export const IS_DEV_SERVER = !!process.env.IS_DEV_SERVER;
|