diff --git a/.gitignore b/.gitignore index 7668ea5..7aca31d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /node_modules/ /package-lock.json /.env -/.netlify/* -!/.netlify/functions +/.netlify /.vercel diff --git a/.netlify/functions/app/app.js b/netlify-functions/app/app.js similarity index 83% rename from .netlify/functions/app/app.js rename to netlify-functions/app/app.js index d58fd4b..cb65fa3 100644 --- a/.netlify/functions/app/app.js +++ b/netlify-functions/app/app.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 3882d74..9a3bbb9 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] - functions = ".netlify/functions" + functions = "netlify-functions" [[redirects]] from = "/*" to = "/.netlify/functions/app"