Skip to content

Commit

Permalink
disable texts until I can add some protections against abuse
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jun 1, 2024
1 parent 7fd53e0 commit fc60f5f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/utils/text.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export async function sendText({
}
}

if (process.env.DISABLE_TEXTS === 'true') {
return {
status: 'error',
error: 'Texts are disabled... Stay tuned!',
}
}

// TODO: maybe we'll have more of these in the future?
const sourceNumber = await prisma.sourceNumber.findFirst({
select: { phoneNumber: true },
Expand Down

0 comments on commit fc60f5f

Please sign in to comment.