File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,29 @@ const rewrites = require('./nextjs/rewrites');
12
12
13
13
/** @type {import('next').NextConfig } */
14
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
+ } ,
15
24
transpilePackages : [
16
25
'react-syntax-highlighter' ,
17
26
'swagger-client' ,
18
27
'swagger-ui-react' ,
19
28
] ,
20
29
reactStrictMode : true ,
21
30
webpack ( config ) {
31
+ // Fix the Cloudflare upload max. size issue
32
+ if ( process . env . GITHUB_ACTIONS === "true" ) {
33
+ config . cache = Object . freeze ( {
34
+ type : 'memory' ,
35
+ } )
36
+ }
37
+
22
38
config . module . rules . push (
23
39
{
24
40
test : / \. s v g $ / ,
You can’t perform that action at this time.
0 commit comments