Skip to content

Commit

Permalink
feat: Changed the subject if the form was created via a test
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Jan 15, 2024
1 parent 6d2d6da commit 5da3729
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
QWEATHER_API_KEY: ${{ secrets.QWEATHER_API_KEY }}
API_NINJA_API_KEY: ${{ secrets.API_NINJA_API_KEY }}
TEST_MODE: true
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/routers/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const emailRouter = createTRPCRouter({
return await resend.emails.send({
from: "[email protected]",
to: "[email protected]",
subject: "Form Email from Weather.io",
subject: !process.env.TEST_MODE
? "Form Email from Weather.io"
: "TEST: Form Email from Weather.io",
react: FormEmail({
firstName: input.firstName,
lastName: input.lastName,
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"UPSTASH_RATELIMITER_TIME_INTERVAL",
"RESEND_API_KEY",
"QWEATHER_API_KEY",
"API_NINJA_API_KEY"
"API_NINJA_API_KEY",
"TEST_MODE"
]
}

1 comment on commit 5da3729

@vercel
Copy link

@vercel vercel bot commented on 5da3729 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.