File tree Expand file tree Collapse file tree 4 files changed +925
-2131
lines changed Expand file tree Collapse file tree 4 files changed +925
-2131
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,8 @@ module.exports = {
14
14
assetPrefix : BASE_PATH ,
15
15
env : {
16
16
BASE_PATH
17
+ } ,
18
+ future : {
19
+ webpack5 : true
17
20
}
18
21
} ;
Original file line number Diff line number Diff line change 40
40
"lambda:_delete" : " yarn run lambda:sls remove"
41
41
},
42
42
"dependencies" : {
43
- "date-fns" : " ^2.11 .1" ,
43
+ "date-fns" : " ^2.21 .1" ,
44
44
"express" : " ^4.17.1" ,
45
45
"gray-matter" : " ^4.0.2" ,
46
- "next" : " ^10.0.0 " ,
47
- "react" : " 17.0.1 " ,
48
- "react-dom" : " 17.0.1 " ,
49
- "remark" : " ^12 .0.0" ,
50
- "remark-html" : " ^12 .0.0 " ,
46
+ "next" : " ^10.1.3 " ,
47
+ "react" : " 17.0.2 " ,
48
+ "react-dom" : " 17.0.2 " ,
49
+ "remark" : " ^13 .0.0" ,
50
+ "remark-html" : " ^13 .0.1 " ,
51
51
"serverless-http" : " ^2.7.0"
52
52
},
53
53
"devDependencies" : {
54
- "serverless" : " ^2.21.1 " ,
54
+ "serverless" : " ^2.35.0 " ,
55
55
"serverless-jetpack" : " ^0.10.8" ,
56
- "serverless-offline" : " ^6.8 .0"
56
+ "serverless-offline" : " ^6.9 .0"
57
57
}
58
58
}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ custom:
32
32
- " postcss-value-parser"
33
33
- " postcss"
34
34
- " resolve-url-loader"
35
+ - " sass"
35
36
- " sass-loader"
36
37
- " style-loader"
37
38
- " watchpack"
@@ -47,6 +48,7 @@ custom:
47
48
" next " :
48
49
- " critters" # for CSS optimization
49
50
- " pnpapi" # for PnP usage
51
+ - " fibers" # Part of sass-loader
50
52
51
53
dynamic :
52
54
resolutions :
@@ -122,10 +124,14 @@ functions:
122
124
# Next.js config/generated files: gather dependencies
123
125
- " next.config.js"
124
126
- " .next/server/**/*.js"
127
+ # Next.js dynamically hooks in compiled webpack stuff (grrr)
128
+ # See files in https://www.runpkg.com/?next@10.1.3/dist/build/webpack/require-hook.js
129
+ # https://github.com/FormidableLabs/nextjs-serverless-demo/issues/11
130
+ - " node_modules/next/dist/compiled/webpack/**/*.js"
125
131
package :
126
132
include :
127
133
# Raw data for posts is read from disk outside `.next` build directory.
128
- - " posts/**/*.md"
134
+ - " src/ posts/**/*.md"
129
135
# Needed built Next.js assets and info. (Some of these are also traced).
130
136
- " .next/BUILD_ID"
131
137
- " .next/*.json"
You can’t perform that action at this time.
0 commit comments