Skip to content

Commit 2afa7f0

Browse files
committed
Reverting to the CJS version of the Netlify API
1 parent 2b565b4 commit 2afa7f0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

functions/status.mjs renamed to functions/status.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import {
2-
NetlifyAPI
3-
} from 'netlify';
1+
const NetlifyAPI = require('netlify')
42

53
exports.handler = async (event, context) => {
64

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"netlify": "^10.1.2"
12+
"netlify": "^3.1.0"
1313
},
1414
"devDependencies": {
1515
"@node-minify/babel-minify": "^5.3.0",
1616
"@node-minify/clean-css": "^5.3.0",
1717
"@node-minify/core": "^6.0.0"
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)