Skip to content

Commit 24a538a

Browse files
committed
a better solution
1 parent 49bafbc commit 24a538a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ const nextConfig = {
4949
DEVELOPER_DOCS_: process.env.NEXT_PUBLIC_DEVELOPER_DOCS,
5050
},
5151
redirects,
52+
// https://github.com/vercel/next.js/discussions/48324#discussioncomment-10748690
53+
cacheHandler: require.resolve(
54+
'next/dist/server/lib/incremental-cache/file-system-cache.js'
55+
),
5256
};
5357

5458
module.exports = withSentryConfig(nextConfig, {

src/build/resolveOpenAPI.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ async function resolveOpenAPI(): Promise<DeRefedOpenAPI> {
2626
}
2727
}
2828
const response = await fetch(
29-
`https://raw.githubusercontent.com/getsentry/sentry-api-schema/${SENTRY_API_SCHEMA_SHA}/openapi-derefed.json`,
30-
{
31-
// this request is not getting cached due to size limit anyway and is printing noise to the build logs
32-
cache: 'no-store',
33-
}
29+
`https://raw.githubusercontent.com/getsentry/sentry-api-schema/${SENTRY_API_SCHEMA_SHA}/openapi-derefed.json`
3430
);
3531
return await response.json();
3632
}

0 commit comments

Comments
 (0)