sudo service postgresql start
const sgMail = require('@sendgrid/mail') sgMail.setApiKey(process.env.SENDGRID_API_KEY) const msg = { to: 'test@example.com', // Change to your recipient from: 'test@example.com', // Change to your verified sender subject: 'Sending with SendGrid is Fun', text: 'and easy to do anywhere, even with Node.js', html: 'and easy to do anywhere, even with Node.js', } sgMail .send(msg) .then(() => { console.log('Email sent') }) .catch((error) => { console.error(error) })
yarn link @keystone-6/core yarn link react yarn link next yarn link react-dom