This commit is contained in:
Kurt Hutten
2021-11-21 09:05:30 +11:00
parent bca9c531a6
commit 41798682b0
4 changed files with 39 additions and 20 deletions

View File

@@ -21,6 +21,7 @@
"@types/nodemailer": "^6.4.2",
"concurrently": "^6.0.0",
"nodemon": "^2.0.7",
"serverless-dotenv-plugin": "^3.10.0"
"serverless-dotenv-plugin": "^3.10.0",
"serverless-plugin-git-variables": "^5.1.0"
}
}

View File

@@ -16,6 +16,10 @@ export const handler = createGraphQLHandler({
sdls,
services,
plugins: [createSentryApolloPlugin()],
cors: {
origin: '*',
credentials: true,
},
onException: () => {
// Disconnect from your database with an unhandled exception.