We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a5639 commit b5794b9Copy full SHA for b5794b9
next.config.js
@@ -12,13 +12,29 @@ const rewrites = require('./nextjs/rewrites');
12
13
/** @type {import('next').NextConfig} */
14
const moduleExports = {
15
+ webpack: (config) => {
16
+ if (config.cache && !dev) {
17
+ config.cache = Object.freeze({
18
+ type: 'memory',
19
+ })
20
+ }
21
+ // Important: return the modified config
22
+ return config
23
+ },
24
transpilePackages: [
25
'react-syntax-highlighter',
26
'swagger-client',
27
'swagger-ui-react',
28
],
29
reactStrictMode: true,
30
webpack(config) {
31
+ // Fix the Cloudflare upload max. size issue
32
+ if (process.env.GITHUB_ACTIONS === "true") {
33
34
35
36
37
+
38
config.module.rules.push(
39
{
40
test: /\.svg$/,
0 commit comments