File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 13
13
},
14
14
"license" : " MIT" ,
15
15
"dependencies" : {
16
+ "@netlify/functions" : " ^0.11.0" ,
16
17
"@vercel/ncc" : " ^0.33.1" ,
17
18
"cloudinary" : " ^1.27.1" ,
18
19
"fs-extra" : " ^10.0.0" ,
Original file line number Diff line number Diff line change
1
+ const { builder } = require ( '@netlify/functions' ) ;
2
+
1
3
const { getQueryParams } = require ( '../../lib/util' ) ;
2
4
const { configureCloudinary, getCloudinaryUrl } = require ( '../../lib/cloudinary' ) ;
3
5
const { PUBLIC_ASSET_PATH } = require ( '../../data/cloudinary' ) ;
4
6
5
- exports . handler = async function ( event , context ) {
7
+ async function handler ( event , context ) {
6
8
const { rawUrl, headers } = event ;
7
9
const { host } = headers ;
8
10
@@ -37,4 +39,6 @@ exports.handler = async function (event, context) {
37
39
Location : cloudinaryUrl
38
40
}
39
41
} ;
40
- } ;
42
+ } ;
43
+
44
+ exports . handler = builder ( handler ) ;
Original file line number Diff line number Diff line change 487
487
" @types/yargs" " ^16.0.0"
488
488
chalk "^4.0.0"
489
489
490
+ " @netlify/functions@^0.11.0 " :
491
+ version "0.11.0"
492
+ resolved "https://registry.yarnpkg.com/@netlify/functions/-/functions-0.11.0.tgz#224f3bba53809b364d36377ad0b2d3de594f994d"
493
+ integrity sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==
494
+ dependencies :
495
+ is-promise "^4.0.0"
496
+
490
497
" @sinonjs/commons@^1.7.0 " :
491
498
version "1.8.3"
492
499
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d"
@@ -1392,6 +1399,11 @@ is-potential-custom-element-name@^1.0.1:
1392
1399
resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5"
1393
1400
integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==
1394
1401
1402
+ is-promise@^4.0.0 :
1403
+ version "4.0.0"
1404
+ resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-4.0.0.tgz#42ff9f84206c1991d26debf520dd5c01042dd2f3"
1405
+ integrity sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==
1406
+
1395
1407
is-stream@^2.0.0 :
1396
1408
version "2.0.1"
1397
1409
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077"
You can’t perform that action at this time.
0 commit comments