1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-16 17:55:32 -04:00

separate ThemeContext and useTheme code

This commit is contained in:
2022-04-06 17:40:16 -04:00
parent eccf2108c7
commit 25aed87b21
9 changed files with 165 additions and 175 deletions

View File

@@ -3,3 +3,7 @@ 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();
// 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;