feat: switch to sweego
Some checks failed
Deploy / lint-build-deploy (push) Failing after 1m19s

This commit is contained in:
2026-01-30 18:12:29 +01:00
parent 20b09849bc
commit 35020f2499
10 changed files with 105 additions and 662 deletions

View File

@@ -14,8 +14,8 @@ export const dynamic = 'force-dynamic'; // defaults to force-static
export async function POST(request: NextRequest) {
try {
if (!process.env.RESEND_KEY) {
throw new Error('Resend variables not set');
if (!process.env.SWEEGO_API_KEY) {
throw new Error('SWEEGO_API_KEY is not set');
}
const body = await request.json();
const validation = ConfirmationSchema.safeParse(body);

View File

@@ -1,7 +1,7 @@
import { NewsletterTemplate } from '@components/email/Newsletter';
import prisma from '@prisma/prisma';
import { formatApiResponse } from '@utils/formatApiResponse';
import { sender } from '@utils/resendClient';
import { sender } from '@utils/sweego';
import {
INTERNAL_SERVER_ERROR,
STATUS_INTERNAL_SERVER_ERROR,

View File

@@ -1,7 +1,7 @@
import { ConfirmationTemplate } from '@components/email/Confirmation';
import prisma from '@prisma/prisma';
import { formatApiResponse } from '@utils/formatApiResponse';
import { sender } from '@utils/resendClient';
import { sender } from '@utils/sweego';
import {
BAD_REQUEST,
INTERNAL_SERVER_ERROR,

View File

@@ -1,7 +1,7 @@
import { UnsubscribeTemplate } from '@components/email/Unsubscribe';
import prisma from '@prisma/prisma';
import { formatApiResponse } from '@utils/formatApiResponse';
import { sender } from '@utils/resendClient';
import { sender } from '@utils/sweego';
import {
BAD_REQUEST,
INTERNAL_SERVER_ERROR,