formtastik
v2.0.0
Published
Form API handler for Vercel Cloud projects
Readme
Formtastik
Form API handler for Vercel Cloud projects.
Installation
npm i formtastikAdd the following to your next.config.js
transpilePackages: ["formtastik"]Providers
Scaleway Transaction Email
Install the required dependency
npm i @scaleway/sdkCreate a file in the api directory with the following content:
import createFormHandler from "formtastik";
import scaleway from "formtastik/providers/scaleway";
export default createFormHandler({
providers: [scaleway],
});Add the following environment variables to your .env file
SCW_ACCESS_KEY=XXX
SCW_SECRET_KEY=XXX
SCW_PROJECT_ID=XXX
[email protected],[email protected]
SCW_EMAIL_SUBJECT='New form submission'
SCW_FROM_NAME='Your App'
[email protected]