Maybe many nodejs applications will work, but you may want to hear from errors.
All you have to do is use acil
.
for example you have a nodejs application:
import express from 'express';
const app = express();
app.get('/', (req, res) => {
hello // <-- this error send email
res.send('Hello World!')
})
app.listen(3000)
Let's add the package now.
yarn add acil @babel/node @babel/core @babel/preset-env --dev
and add start script.
"scripts": {
"start": "acil server.js" // <-- your server application file
}
Take a look at the following acil.json
example:
{
"admins": ["yasaricli@gmail.com"],
"from": "Company <no-reply@company.com>",
"sendGridApiKey": "SG.XXX"
}
and let's start.
yarn start
It's that simple.
Top comments (0)