mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: migration errors by testing on a production instance.
This commit is contained in:
@@ -20,7 +20,8 @@ async function getS3Client(config: S3Config) {
|
||||
});
|
||||
}
|
||||
|
||||
const BASE_DIR = "/";
|
||||
// Keep it like that
|
||||
const BASE_DIR = "";
|
||||
|
||||
|
||||
async function ensureBucket(config: S3Config) {
|
||||
@@ -56,7 +57,6 @@ export async function getS3(config: S3Config, input: { data: StorageGetInput }):
|
||||
// const key = input.data.path;
|
||||
const key = `${BASE_DIR}${input.data.path}`;
|
||||
|
||||
|
||||
try {
|
||||
await client.statObject(config.bucketName, key);
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user