fix: load local env for direct upload cors script
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-05-27 11:04:24 +08:00
parent 9c450a3d07
commit c24ccebb18

View File

@ -1,4 +1,4 @@
import "dotenv/config";
import { config as loadEnv } from "dotenv";
import {
GetBucketCorsCommand,
@ -11,6 +11,9 @@ import { and, eq } from "drizzle-orm";
import { db } from "@/lib/db";
import { storageConfig } from "@/lib/db/schema";
loadEnv({ path: ".env.local" });
loadEnv();
type S3UploadConfig = {
endpoint: string;
region: string;