@@ -7,7 +7,8 @@ import { formatDateLabel, getDeadlineCutoff } from "../_lib/dateFormat";
77import { getResendClient } from "../_lib/resend" ;
88import { buildConfirmationEmailHtml , buildRecruitmentEmailHtml , buildReissueEmailHtml } from "./templates" ;
99
10- const APP_URL = process . env . APP_URL ?? "https://yps.app" ;
10+ const APP_URL = process . env . APP_URL ?? "https://shiftori.app" ;
11+ const RESEND_FROM = process . env . RESEND_FROM_EMAIL ?? "noreply@shiftori.app" ;
1112
1213/**
1314 * シフト確定メールを全スタッフに送信
@@ -32,7 +33,7 @@ export const sendShiftConfirmationEmails = internalAction({
3233 const reissueUrl = `${ APP_URL } /shifts/reissue?recruitmentId=${ recruitmentId } ` ;
3334
3435 await resend . emails . send ( {
35- from : `${ data . shopName } <onboarding@resend.dev >` ,
36+ from : `${ data . shopName } <${ RESEND_FROM } >` ,
3637 to : staffData . email ,
3738 subject : isResend
3839 ? `【シフト変更】【${ data . shopName } 】${ data . periodLabel } シフト変更のお知らせ`
@@ -70,11 +71,10 @@ export const sendReissueEmail = internalAction({
7071 } ) ;
7172
7273 const resend = getResendClient ( ) ;
73- const appUrl = process . env . APP_URL ?? "https://yps.app" ;
74- const magicLinkUrl = `${ appUrl } /shifts/view?token=${ token } ` ;
74+ const magicLinkUrl = `${ APP_URL } /shifts/view?token=${ token } ` ;
7575
7676 await resend . emails . send ( {
77- from : `${ data . shopName } <onboarding@resend.dev >` ,
77+ from : `${ data . shopName } <${ RESEND_FROM } >` ,
7878 to : data . staffEmail ,
7979 subject : `【${ data . shopName } 】${ data . periodLabel } シフト閲覧リンク` ,
8080 html : buildReissueEmailHtml ( {
@@ -111,7 +111,7 @@ export const sendRecruitmentNotificationEmails = internalAction({
111111 const magicLinkUrl = `${ APP_URL } /shifts/submit?token=${ token } ` ;
112112
113113 await resend . emails . send ( {
114- from : `${ data . shopName } <onboarding@resend.dev >` ,
114+ from : `${ data . shopName } <${ RESEND_FROM } >` ,
115115 to : staff . email ,
116116 subject : `【${ data . shopName } 】${ data . periodLabel } シフト希望の提出をお願いします` ,
117117 html : buildRecruitmentEmailHtml ( {
0 commit comments