More debug logging
This commit is contained in:
parent
c13b77e5e8
commit
c8950589b3
1 changed files with 4 additions and 1 deletions
|
|
@ -8,8 +8,11 @@ function getR2() {
|
|||
const secretKey = process.env.R2_SECRET_ACCESS_KEY;
|
||||
const bucket = process.env.R2_BUCKET_NAME;
|
||||
|
||||
// Debug: log what's available
|
||||
console.log("R2 envs:", { accountId: !!accountId, accessKeyId: !!accessKeyId, secretKey: !!secretKey, bucket: !!bucket });
|
||||
|
||||
if (!accountId || !accessKeyId || !secretKey || !bucket) {
|
||||
throw new Error(`Missing R2 config`);
|
||||
throw new Error(`Missing R2 config: accountId=${!!accountId}, accessKeyId=${!!accessKeyId}, secretKey=${!!secretKey}, bucket=${!!bucket}`);
|
||||
}
|
||||
|
||||
// Use public development URL (from R2 bucket settings)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue