diff --git a/netlify/functions/hello-world.js b/netlify/functions/hello-world.js index 40764a4..25ea764 100644 --- a/netlify/functions/hello-world.js +++ b/netlify/functions/hello-world.js @@ -1,4 +1,4 @@ -exports.handler = async function () { +export const handler = async () => { return { statusCode: 200, body: JSON.stringify({ diff --git a/package.json b/package.json index 4608da6..2a7ec9f 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "type": "module", "name": "explorers-up-and-running-with-serverless-functions", "version": "1.0.0", "description": "Learn how to use serverless functions in less than 30 minutes!",