diff --git a/netlify-functions/app/app.js b/netlify-function.js similarity index 84% rename from netlify-functions/app/app.js rename to netlify-function.js index cb65fa3..750d594 100644 --- a/netlify-functions/app/app.js +++ b/netlify-function.js @@ -1,5 +1,5 @@ const awsServerlessExpress = require("aws-serverless-express"); -const app = require("../../index.js"); +const app = require("./index.js"); const server = awsServerlessExpress.createServer(app); exports.handler = (event, context) => { diff --git a/netlify.toml b/netlify.toml index 27d3b9e..99ff019 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,7 +1,7 @@ [build] - functions = "netlify-functions" + functions = "." command = ":" [[redirects]] from = "/*" - to = "/.netlify/functions/app" + to = "/.netlify/functions/netlify-function" status = 200