We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d3406 commit 2b29db6Copy full SHA for 2b29db6
functions/status.js
@@ -1,10 +1,9 @@
1
-// Netlify API is now ES Module
2
-import {
3
- NetlifyAPI
4
-} from 'netlify';
5
-
6
exports.handler = async (event, context) => {
7
+ import {
+ NetlifyAPI
+ } from 'netlify';
+
8
const client = new NetlifyAPI(process.env.NETLIFY_TOKEN)
9
const deploys = await client.listSiteDeploys({
10
siteId: process.env.NETLIFY_SITE_ID
0 commit comments