fix: load local env for direct upload cors script
This commit is contained in:
parent
9c450a3d07
commit
c24ccebb18
@ -1,4 +1,4 @@
|
|||||||
import "dotenv/config";
|
import { config as loadEnv } from "dotenv";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
GetBucketCorsCommand,
|
GetBucketCorsCommand,
|
||||||
@ -11,6 +11,9 @@ import { and, eq } from "drizzle-orm";
|
|||||||
import { db } from "@/lib/db";
|
import { db } from "@/lib/db";
|
||||||
import { storageConfig } from "@/lib/db/schema";
|
import { storageConfig } from "@/lib/db/schema";
|
||||||
|
|
||||||
|
loadEnv({ path: ".env.local" });
|
||||||
|
loadEnv();
|
||||||
|
|
||||||
type S3UploadConfig = {
|
type S3UploadConfig = {
|
||||||
endpoint: string;
|
endpoint: string;
|
||||||
region: string;
|
region: string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user