Skip to content

Commit fc60f5f

Browse files
committed
disable texts until I can add some protections against abuse
1 parent 7fd53e0 commit fc60f5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/utils/text.server.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ export async function sendText({
5151
}
5252
}
5353

54+
if (process.env.DISABLE_TEXTS === 'true') {
55+
return {
56+
status: 'error',
57+
error: 'Texts are disabled... Stay tuned!',
58+
}
59+
}
60+
5461
// TODO: maybe we'll have more of these in the future?
5562
const sourceNumber = await prisma.sourceNumber.findFirst({
5663
select: { phoneNumber: true },

0 commit comments

Comments
 (0)