formtastik
v2.0.0
Published
Form API handler for Vercel Cloud projects
Downloads
2
Readme
Formtastik
Form API handler for Vercel Cloud projects.
Installation
npm i formtastik
Add the following to your next.config.js
transpilePackages: ["formtastik"]
Providers
Scaleway Transaction Email
Install the required dependency
npm i @scaleway/sdk
Create 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]