mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-02 19:55:18 +02:00
chore: Update S3 endpoint configuration to use MINIO_CLIENT_OVERRIDE
This commit is contained in:
parent
18e48c3b80
commit
d3112c2925
2 changed files with 1 additions and 4 deletions
|
@ -1,6 +1,3 @@
|
|||
import { eq } from "drizzle-orm";
|
||||
import { db } from "./db.server";
|
||||
import { imagesTable } from "./schema";
|
||||
import { ensureBucketExists, getObjectUrl, s3Client } from "$lib/server/s3";
|
||||
import { ListObjectsV2Command } from "@aws-sdk/client-s3";
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ export const deleteObject = async (bucketName: string, fileName: string) => {
|
|||
|
||||
export const getObjectUrl = (bucketName: string, fileName: string): string => {
|
||||
let objectUrl: string;
|
||||
let endpoint = env.AWS_S3_ENDPOINT as string;
|
||||
let endpoint = env.MINIO_CLIENT_OVERRIDE as string;
|
||||
|
||||
if (endpoint.includes("amazonaws.com")) {
|
||||
// Amazon S3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue