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:
jakeandClaude Sonnet 5.5 committed 2026-10-03 09:32:06 -04:00
1 parent b5f0b01998
commit 373f1cfc75
4 files changed
+10 -13

No files matched your search

+3 -1
View File
@@ -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)), {