Page MenuHomePhabricator

D9615.diff
No OneTemporary

D9615.diff

diff --git a/lib/facts/blob-service.js b/lib/facts/blob-service.js
--- a/lib/facts/blob-service.js
+++ b/lib/facts/blob-service.js
@@ -1,5 +1,7 @@
// @flow
+import { isDev } from '../utils/dev-utils.js';
+
type BlobServicePath = '/blob/:blobHash' | '/blob';
export type BlobServiceHTTPEndpoint = {
@@ -7,6 +9,11 @@
+method: 'GET' | 'POST' | 'PUT' | 'DELETE',
};
+type BlobServiceConfig = {
+ +url: string,
+ +httpEndpoints: { +[endpoint: string]: BlobServiceHTTPEndpoint },
+};
+
const httpEndpoints = Object.freeze({
GET_BLOB: {
path: '/blob/:blobHash',
@@ -26,8 +33,10 @@
},
});
-const config = {
- url: 'https://blob.commtechnologies.org',
+const config: BlobServiceConfig = {
+ url: isDev
+ ? 'https://blob.staging.commtechnologies.org'
+ : 'https://blob.commtechnologies.org',
httpEndpoints,
};

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 7:18 AM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2583444
Default Alt Text
D9615.diff (845 B)

Event Timeline