Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3365290
D9615.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
845 B
Referenced Files
None
Subscribers
None
D9615.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9615: [lib] Use staging Blob URL for dev
Attached
Detach File
Event Timeline
Log In to Comment