use environment variable to store R2_BUCKET

This commit is contained in:
evan
2025-04-28 09:54:04 -07:00
parent 8e8df5c308
commit 94e828e408
4 changed files with 5 additions and 10 deletions
+5 -1
View File
@@ -42,7 +42,11 @@ export abstract class DefaultServerConfig implements ServerConfig {
r2SecretKey(): string {
return process.env.R2_SECRET_KEY;
}
abstract r2Bucket(): string;
r2Bucket(): string {
return process.env.R2_BUCKET;
}
adminHeader(): string {
return "x-admin-key";
}