Skip to content

Commit

Permalink
fix(api): πŸ› add resend api key to cf settings
Browse files Browse the repository at this point in the history
βœ… Closes: #41
  • Loading branch information
brklntmhwk committed Aug 13, 2024
1 parent 291ea68 commit ac27695
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/lib/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const FORM_TEXTAREA_ROWS = 5;
export const FORM_TEXTAREA_MINLENGTH = 25;
export const TURNSTILE_RETRY_INTERVAL = 15000;
export const ACCOUNT_ID = 'brklntmhwk';
export const SITE_URL = 'https://younagi.dev';
export const SITE_DOMAIN = 'younagi.dev';
export const SITE_URL = `https://${SITE_DOMAIN}`;
export const UNSPLASH_BASE_URL = 'https://unsplash.com';
export const GITHUB_BASE_URL = 'https://github.com';
export const TURNSTILE_API_URL =
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[locale]/api/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const POST: APIRoute = async ({

const mailContent = {
from: `${meta.data.site.title} <${myCustomAddress}>`,
to: myCustomAddress,
to: [myCustomAddress],
subject: `${CONTACT_NOTIFICATION_SUBJECT} from ${data.name}`,
text:
`Name:\n${data.name}\n\n` +
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const POST: APIRoute = async ({

const mailContent = {
from: `${meta.data.site.title} <${myCustomAddress}>`,
to: myCustomAddress,
to: [myCustomAddress],
subject: `${CONTACT_NOTIFICATION_SUBJECT} from ${data.name}`,
text:
`Name:\n${data.name}\n\n` +
Expand Down

0 comments on commit ac27695

Please sign in to comment.