File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ const SENTRY_API_SCHEMA_SHA = '76490f725fda1363e3412c8462a95567832a68ac';
14
14
15
15
const activeEnv = process . env . GATSBY_ENV || process . env . NODE_ENV || 'development' ;
16
16
17
- let cachedResonse : DeRefedOpenAPI | null = null ;
18
-
19
17
async function resolveOpenAPI ( ) : Promise < DeRefedOpenAPI > {
20
18
if ( activeEnv === 'development' && process . env . OPENAPI_LOCAL_PATH ) {
21
19
try {
@@ -29,16 +27,10 @@ async function resolveOpenAPI(): Promise<DeRefedOpenAPI> {
29
27
) ;
30
28
}
31
29
}
32
-
33
- if ( cachedResonse ) {
34
- return cachedResonse ;
35
- }
36
30
const response = await fetch (
37
- `https://raw.githubusercontent.com/getsentry/sentry-api-schema/${ SENTRY_API_SCHEMA_SHA } /openapi-derefed.json` ,
38
- { cache : 'no-store' }
31
+ `https://raw.githubusercontent.com/getsentry/sentry-api-schema/${ SENTRY_API_SCHEMA_SHA } /openapi-derefed.json`
39
32
) ;
40
- cachedResonse = await response . json ( ) ;
41
- return cachedResonse ! ;
33
+ return await response . json ( ) ;
42
34
}
43
35
44
36
export type APIParameter = {
You can’t perform that action at this time.
0 commit comments