Refine workspaces and event publishing; harden uploads and email delivery
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
import { existsSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import { config } from "dotenv";
|
||||
import {
|
||||
CreateBucketCommand,
|
||||
DeleteObjectsCommand,
|
||||
@@ -15,16 +12,6 @@ import {
|
||||
} from "@aws-sdk/client-s3";
|
||||
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
||||
|
||||
for (const path of [
|
||||
resolve(process.cwd(), ".env"),
|
||||
resolve(process.cwd(), "../../.env"),
|
||||
]) {
|
||||
if (existsSync(path)) {
|
||||
config({ path, override: false });
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const PRESIGN_PUT_SECONDS = 10 * 60;
|
||||
const PRESIGN_GET_SECONDS = 60 * 60;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user