Skip to content

Commit

Permalink
TODO placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
aecorredor committed May 30, 2024
1 parent 8988efa commit 65251e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions deploy/Pulumi.dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config:
aws:region: us-east-1
serverless-fastify-starter:accessTokenSecret:
secure: create-new-one
serverless-fastify-starter:apiEndpoint: dev.api.addyourdomain.com
secure: TODO-create-new-one
serverless-fastify-starter:apiEndpoint: dev.api.TODO-addyourdomain.com
serverless-fastify-starter:deployedBy: pulumi
serverless-fastify-starter:project: serverless-fastify-starter
serverless-fastify-starter:sesDomain: addyourdomain.com
serverless-fastify-starter:sesDomain: TODO-addyourdomain.com
pulumi:template: serverless-aws-typescript
6 changes: 3 additions & 3 deletions deploy/Pulumi.prod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config:
aws:region: us-east-2
serverless-fastify-starter:accessTokenSecret:
secure: create-new-one
serverless-fastify-starter:apiEndpoint: api.addyourdomain.com
secure: TODO-create-new-one
serverless-fastify-starter:apiEndpoint: api.TODO-addyourdomain.com
serverless-fastify-starter:deployedBy: pulumi
serverless-fastify-starter:project: serverless-fastify-starter
serverless-fastify-starter:sesDomain: addyourdomain.com
serverless-fastify-starter:sesDomain: TODO-addyourdomain.com
pulumi:template: serverless-aws-typescript
5 changes: 4 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export const createApp = ({

const hostname = new URL(origin).hostname;

if (hostname === 'localhost' || hostname.includes('addyourdomain.com')) {
if (
hostname === 'localhost' ||
hostname.includes('TODO-addyourdomain.com')
) {
cb(null, true);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/email/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const sendEmail = (template: EmailTemplate) => {
transporter.sendMail(
{
...template,
from: '"Add Your Subject" <no-reply@addyourdomain.com>',
from: '"TODO Add Your Subject" <no-reply@TODO-addyourdomain.com>',
},
(error) => {
if (error) {
Expand Down

0 comments on commit 65251e9

Please sign in to comment.