mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-27 12:56:23 -04:00
refactor: load env files with @next/env instead of dotenv
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
4 files changed
+10
-13
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import "dotenv/config";
|
||||
import { defineCollection, defineConfig } from "@content-collections/core";
|
||||
import nextEnv from "@next/env";
|
||||
import { decode } from "html-entities";
|
||||
import { unified } from "unified";
|
||||
import { z } from "zod";
|
||||
@@ -14,6 +14,8 @@ import {
|
||||
remarkStripMdxImportsExports,
|
||||
} from "@/lib/remark";
|
||||
|
||||
nextEnv.loadEnvConfig(process.cwd());
|
||||
|
||||
const POSTS_DIR = "notes" as const;
|
||||
|
||||
const parseableDate = z.string().refine((value) => !Number.isNaN(Date.parse(value)), {
|
||||
|
||||
Reference in new issue
Block a user