To use this project you have to have a Storyblok account. If you don't have one yet you can register at Storyblok, it's free.
yarn # or npm install
NEXT_PUBLIC_STORYBLOK_API_TOKEN=<Preview_Token_From_Your_Space_For_Local_Env>
RESEND_API_KEY=<Resend_Api_Key_Generated>
TESTING_EMAIL_ADDRESS=<Your_Email_Address_To_Receive_Results>
Set the preview domain in Storyblok to https://localhost:3010/
# to run in developer mode
$ yarn dev # or npm run dev
# (in another terminal instance) to run ssh
$ mkcert localhost
$ local-ssl-proxy --source 3010 --target 3000 --cert localhost.pem --key localhost-key.pem
# to build your project
$ yarn build # or npm run build
# to preview emails in developer mode
$ cd email-templates
$ yarn & yarn dev # or npm run dev
To try out the React email template & Storyblok content demo, call https://localhost:3010/api/send in your browser, when the server is running locally, and check your inbox in the address you defined in the .env variable.